Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report does not print properly
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00576486
Message ID:
00609517
Vues:
21
Do you think, it's a bug in Adobe, which should be reported?

At work I have Adobe 4.0 and I use CreatePDF() function from Houston Brennan. Haven't have complaints yet...

>For some reason Acrobat 5 creates actual PDF file in the current directory. For example, if lcPfile = "C:\somedir\mypdf.pdf" and current VFP directory is "C:\temp" the two files'll be cretaed. The first "C:\somedir\mypdf.pdf" with 0 size and actual pdf file "C:\temp\mypdf.pdf". Here's how you can fix it
>
lcPfile = "C:\somedir\mypdf.pdf"
>lcTempfile = (FORCEEXT(lcPfile, "tmp"))
>REPORT FORM myreport TO FILE (lcTemlcPfile) NOCONSOLE
>RENAME (JUSTFNAME(lcPfile ) ) TO (lcPfile )
>ERASE (lcTempfile)
>
If you don't want file to be created in the current directory than
>
lcPfile = "C:\somedir\mypdf.pdf"
>lcSaveDir = FULLPATH("")
>SET DEFAULT TO ( JUSTPATH(cPfile))
>lcTempfile = (FORCEEXT(lcPfile, "tmp"))
>REPORT FORM myreport TO FILE (lcTemlcPfile) NOCONSOLE
>ERASE (lcTempfile)
>SET DEFAULT TO (lcSaveDir )
>
>
>>
>>I tried the NOCONSOLE and it effectively blocked the output to the screen but, the file length is still 0. I am using Acrobat 5.00 3/22/2001.
>>
>>Thanks for the information. If you have any other thought I would welcome them
>>
>>Tom
>>
>>>Add NOCONSOLE to suppress printing to the screen. What version of Acrobat are you using?
>>>
>>>>I have the following code in a FoxPro 7 Program running under XP. This should produce a file in the fully qualified filename PFNAME. Instead it opens a file in the proper place with the proper name, makes it zero bytes in length and then previews the report to the screen.
>>>>
>>>>SET PRINTER TO NAME 'Acrobat PDFWriter'
>>>>REPORT FORM &REPORTNAME TO FILE (PFILE) NOCONSOLE
>>>>
>>>>Does anyone know what is happening, or what I am missing
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform