Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print2PDF
Message
De
24/04/2004 06:33:37
 
 
À
23/04/2004 10:26:41
Nancy Hui
Telesystems Marketing
Houston, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
FRX2Any
Titre:
Divers
Thread ID:
00897592
Message ID:
00897868
Vues:
16
>Hello,
>
>I'm running VFP 6.0. the following code does not work with my application, Can anyone please help me.
>I have also posted this message on .HelpWanted and .ProgrammerExchang. I apologized for cross posting,
>but I desperately needed help.
>
>USE TMPNOB
>lcMyPDFName="c:\PDFReport\abc123.pdf"
>lcMyVFPReport="TESTR.FRX"
>loPDF = createobject("Print2PDF", lcMyPDFName, lcMyVFPReport, .t.)
>
>It works really well if I run the above code on a single prg, however, if I insert the above code in my application
>which I really needed to work, it created a PDF file with 0 byte, also, when I tried to open it any way, a message
>will tell me that "file is used by another", I have to actually quit out for VFP. And after quitting out of VFP, it gave me
>a message saying that the file is corrupted or something. Please help me!!!! I have a dead line to meet.
>Any suggestions, advises are much appreciated and welcome!!
>
>Many thanks in advance.
>Nancy

hi Nancy,

There could be a lot of reasons

As you probably know it first prints to a file using a ps printer. Then it takes the postscript output and sends it through GhostScript to produce a pdf


- does the computer have a ps printer installed ?
- is GhostScript properly installed ?

If I remember correctly it's a class, you may have to trace it.

hth
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform