Web Connection exposes GhostScript via the wwGhostScript class. To use the class you need to install GhostScript and a Postscript compatible printer driver. wwGhostscript works by using GhostScript as a PostScript to PDF converter.
You need:
Example:
oPDF = CREATEOBJECT("wwGhostScript") oPDF.cPrinterDriver = "Xerox Phaser 1235 PS" && Default oPDF.cResolution = "300x300" && optional 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")
Url: www.ghostscript.com
Price: Free