>*-- Remember the current default printer >LOCAL lcPrinter >lcPrinter = SET('PRINTER',3) > >*-- Set the printer to the PDF printer and print the report >SET PRINTER TO NAME 'blah blah blah' >REPORT FORM MyReport NOCONSOLE TO PRINTER > >*-- Restore default printer and print report again >SET PRINTER TO NAME "&lcPrinter" >REPORT FORM MyReport NOCONSOLE TO PRINTER >>
SET PRINTER TO NAME (lcPrinter)