Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDF

Status
Not open for further replies.

AlastairOz

Technical User
Jul 27, 2010
81
0
0
AU
I have been trying to get this to work, the PDF solution here:

faq184-2143

My ps file are created, but I get an error message when
ps2pdf.prg tries to open ghost script.

This is it hangs up:

RetCode = CreateProcess(0, File2Run, 0, 0, 1, ;
NORMAL_PRIORITY_CLASS , 0, 0, @lcStartupInfo, @process_info)

* Unable to run, exit now.
If RetCode = 0
=Messagebox("Error occurred. Error code: ", GetLastError())
Return
Endif

GS fails to start, so I get the message box error. I don't get
an error code though.


 
What version of .... well ... everything?

Do you have an installation issue because you didn't "Run as Admin" during install? Do you have an issue running a 32-bit driver in 64-bit Windows?

You haven't given anyone enough information to guess.
 
Hi Dan,
I have Windows XP SP3 installed.
Ghost Script was installed with admin rights.
Ghost script works no problem outside of VFP with a third
party PDF tool.

I have downloaded and tried XFRX.
This works OK. Probably use that, thanks.
 
There are many other solutions you can use for free not depending on Postscript/Ghostscript as a temporary format. Unless you don't have any Postscript processing in the intermediate postscript generated I think of postscript as an overhead you don't need at all.

Bullzip PDF, PDFCreator, CutePDF, whatever. Installs as a printer and creates a pdf file instead of printing. Therefore integrates into any application able to print without any changes.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top