Not sure what the problem is.
This works perfectly for me:
DO wconnect o = CREATEOBJECT("wwGhostScript") *** Assign a PostScript Driver (or you can use an installed PS driver o.cPrinterDriver = FindPostScriptPrinter() *** Open data for report USE wwDemo\tt_cust *** Run the report ? o.PrintReport(fullpath("wwDemo\CustList.frx"),"c:\temp\test.pdf") *** Show the report in PDF Viewer GoUrl("c:\temp\test.pdf") RETURN
The key is to get the printer driver right. Here are drivers that exist on each plaform, but need to be installed:
Xerox Phaser 6120 PS (Win 7)
Xerox Phaser 1235 PS (Vista)
Apple Color LW 12/660 PS (XP and prior)
You can optionally use wwAPI's InstallPrinterDriver to install a printer driver dynmamically when the app is configured.
+++ Rick ---
I am trying to use wwGhostScript but GhostPsToPdf call in wwGhostScript :: PrintReport keeps returning false. ghostscript 8.1 is installed in C:\Program Files\gs\gs8.1\
What may be the problem? TIA,
Are you using a valid Postscript printer driver?
+++ Rick ---
Tried HaruPDF and the wrapper created by Dorin Vasilescu. Super fast. Small issues easy to work around.
http://libharu.sourceforge.net/
http://www.foxite.com/archives/harupdf-library-wrapper-and-pdf-listener-0000188422.htm
http://sites.google.com/site/pdfclasses/
Worth making payments to Dorin and the creator of HaruPDF (Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>)
Alex
| Rick Strahl West Wind Technologies Where do you want to surf today? | Reader Version: 5.0 |
from Maui, Hawaii