Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print to PDF with filename
Message
De
17/02/2023 12:06:09
 
 
À
17/02/2023 11:59:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01686210
Message ID:
01686215
Vues:
70
J'aime (1)
>>>Hey all, been a while since i've done much with VFP 9.0.
>>>
>>>What I want to do is create a PDF of a VFP report and specify the filename of the PDF programmatically. Surely some of you good programmers have a way or would know how to do that.
>>>
>>>Thanks
>>
>>You could try FoxyPreviewer
>>https://www.foxypreviewer.com/p/downloads.html
>
>I downloaded it, I'll see if I can figure out how to make it work. I'm not a "Real" developer, more of a guy who makes VFP do some stuff. ;)

To use it, you only need to add one line of code, and edit the line that starts the report.
DO LOCFILE("FoxyPreviewer.App")
* Make PDF
REPORT FORM (_Samples + "\Solution\Reports\Wrapping.frx") ;
   OBJECT TYPE 10 ; && OBJTYPE 10 = PDF , 11 = PDF AS IMAGE , 12 = RTF , 13 = XLS , 14 = HTML
   TO FILE "c:\TestReport.Pdf" ; &&' Destination
   PREVIEW && Open the default PDF viewer
Tip: Drop the last line if you only want the PDF, no preview.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform