Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print2PDF - Ghostscript could not create the file
Message
From
18/12/2008 10:51:38
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01355726
Message ID:
01368536
Views:
20
It's a problem in where the pdf is being created: it's being created in the bin directory of the gs install.

As commented below, add a line and change a line in pdemo.prg, and it will work fine:
lcPath = addbs(justpath(fullpath("p2dmo.frx"))) && added line

do print2pdf with lcPath + "p2demo.pdf", "p2demo.frx" && pathed the output file
enjoy,

Hank Fay

>Hello all,
>
>I'm trying to use Print2PDF. I've installed the included PostScript driver and Ghostscript. When I run the p2demo.prg or my own test program, Print2Pdf.prg bombs out at "Ghostscript could not create the file:...".
>
>I've installed on 2 different computers and I encounter the same problem / error message.
>
>How do I fix the problem?
>
>Many thanks,
>
>Ellis
Previous
Reply
Map
View

Click here to load this message in the networking platform