I've successfully converted the text file to a PDF but in the application if
I try it a second time it says it can not convert the PS to a PDF. It only
allows you to do it one time. I have to exit the application and start it
again and it works just one time again.

Rusty G

Re: Using Ghostscript with VFP9 by swdev2

swdev2
Sat Jun 30 16:20:51 CDT 2007

Paul McNett? Bob Lee?
one of those chaps has written some stuff on how to do it successfully.

Have you look at http://fox.wikis.com
or http://vfug.org (check the newsletter archives)

Warmest Regards [Bill]

--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Rusty" <Rusty@discussions.microsoft.com> wrote in message
news:E1D8FA0E-5F82-4837-B1BD-7AFF93846797@microsoft.com...
> I've successfully converted the text file to a PDF but in the application
if
> I try it a second time it says it can not convert the PS to a PDF. It only
> allows you to do it one time. I have to exit the application and start it
> again and it works just one time again.
>
> Rusty G



RE: Using Ghostscript with VFP9 by Allan

Allan
Sun Jul 01 03:36:00 CDT 2007

hi rusty,

how do call gs? using the batch file (.bat) or run?
try to use the WinApi ShellExecute instead...

allan

"Rusty" wrote:

> I've successfully converted the text file to a PDF but in the application if
> I try it a second time it says it can not convert the PS to a PDF. It only
> allows you to do it one time. I have to exit the application and start it
> again and it works just one time again.
>
> Rusty G

RE: Using Ghostscript with VFP9 by Rusty

Rusty
Thu Jul 05 14:42:01 CDT 2007


Here is the call I use to create the PDF

**** created variable with name of PDF
mcinv = UPPER(macct)+'_'+minvnum+'.pdf'

*** special qpr that stores info for creating PDF possible
DO c:\ogesic\career_invpdf.qpr

*-- Create the report. Function call is: Do Print2PDF with
"MyPdfFile","MyVfpReport"
** Code used: lcPrintToPdfMessage = Print2Pdf("PDFName", "MyReport.frx")
*** PDF created
lcPrintToPdfMessage = Print2Pdf(mcinv,"career_invoice.frx")

*** copy PDF to home() directory then delete the file from the creation
directory
COPY FILE c:\gs\gs8.11\bin\*.pdf TO *.pdf
DELETE FILE c:\gs\gs8.11\bin\*.pdf


I've seen that the PS is created but just never gets converted to a PDF when
ran the second time.

Rusty


"Allan" wrote:

> hi rusty,
>
> how do call gs? using the batch file (.bat) or run?
> try to use the WinApi ShellExecute instead...
>
> allan
>
> "Rusty" wrote:
>
> > I've successfully converted the text file to a PDF but in the application if
> > I try it a second time it says it can not convert the PS to a PDF. It only
> > allows you to do it one time. I have to exit the application and start it
> > again and it works just one time again.
> >
> > Rusty G

RE: Using Ghostscript with VFP9 by Greco

Greco
Fri Jul 13 19:14:00 CDT 2007

Rusty I had the same problem curiosly my aplication work in windows XP but in
Windows 2003 Sever dont work, when I looking the problem I saw that my
version of ghostscript in XP is 8.57 and teh version in 2003 Server was 8.11
when I replace the version in 2003 all work fine.

"Rusty" wrote:

> I've successfully converted the text file to a PDF but in the application if
> I try it a second time it says it can not convert the PS to a PDF. It only
> allows you to do it one time. I have to exit the application and start it
> again and it works just one time again.
>
> Rusty G