AndrewMozley
Programmer
I have several reports where I offer the chance of printing to paper, to screen, or to a pdf printer.
To organise the pdf printing, I include code more or less like this :
This usually works fine, but I sometimes make the mistake during report design of leaving the ‘Save Printer Environment’ checkbox ticked; and this means that at run-time the report does not go to the PDF printer.
I would like to include a check at run-time to warn the user that this is the case (and possibly include code to make the necessary change to the .frx/frt files).
What is the easiest way of doing this? Thanks - Andrew
To organise the pdf printing, I include code more or less like this :
Code:
lfrxname = “<The frx file name for the report>”
lName = “<My PDF printer name>”
SET PRINTER TO NAME (lname)
REPORT FORM &lfrxname NOCONSOLE TO PRINTER
This usually works fine, but I sometimes make the mistake during report design of leaving the ‘Save Printer Environment’ checkbox ticked; and this means that at run-time the report does not go to the PDF printer.
I would like to include a check at run-time to warn the user that this is the case (and possibly include code to make the necessary change to the .frx/frt files).
What is the easiest way of doing this? Thanks - Andrew