SET CLASSLIB TO fpp.vcx ADDITIVE o = CreateObject("fpprptgen") * Initalize the report to use the printer we want. * o.clPrinters holds an array of available printers. o.clInitalizeReport("bigreport.frx", o.clDefaultPrinter) o.clSetDuplex(3) && book edge IF o.clFinalizeReport() = .T. AND o.clReportReady = .T. REPORT FORM (o.clReportForm) TO PRINTER NOCONSOLE ENDIF o.clCleanUp() o = NULLWhat FPP does in the code above, is it gets the default printer information about the printer you told it and then the o.clSetDuplex makes a change to the temporary printer settings.
SET CLASSLIB TO fpp.vcx ADDITIVE o = CREATEOBJECT("fppprtinfo") * fppprtinfo also has a clPrinters, which holds an array of printers installed. o.clGetCaps(o.clDefaultPrinter) IF ASCAN(o.clCaps, "duplex") > 0 * Printer supports duplex printing. ELSE * Printer does not support duplex printing. ENDIF o = NULL** You can scan for a print that supports duplexing with the following code:
o = CREATEOBJECT("fppprtinfo") FOR x = 1 TO o.clPrinterCount o.clGetCaps(x) IF ASCAN(o.clCaps, "duplex") > 0 * Here is a printer that supports duplexing. ENDIF ENDFOR*---------