In order to use wwDistiller you also need to install a PostScript printer driver.
Distiller works by converting PostScript files to PDF files. As such wwDistiller prints a report to a PostScript file first and then converts the file to a PDF file. This technique is reliable and recommended as the best way to use Adobe's Acrobat tool to generate PDFs.
You need:
Example:
oPDF = CREATEOBJECT("wwDistiller") oPDF.cPrinterDriver = "Xerox Phaser 1235 PS" oPDF.PrintReport("customer.frx","d:\temp\customer.pdf")
Printer Driver Name
You can either set the printer driver explicitly as in the example above or subclass and set the property in the subclass. The latter is more maintainable.
To install the default Xerox Phaser 1235 PS printer driver easily you can use the following code from the comand window:
DO WCONNECT InstallPrinterDriver("Xerox Phaser 1235 PS")
Price: (about $199 retail)