The following printtopdf function works if 1) initiated from any form (i.e., embedded in a button), 2) initiated using the action menu while a form is selected (aka, on top), and 3) when initiated using the action menu while the datasheet is selected and the form “Parts on Order (office)” is open.
printtopdf “”,“Printer”,info(“printer”),“orientation”,“landscape”,“Form”,“Parts on Order (office)”
However, this function prints the datasheet if initiated from the action menu, and the form “Parts on Order (office)” is closed. Why is the printtopdf function printing the datasheet in this instance?
FYI, I’m using Sonoma.