Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print to PDF with filename
Message
De
21/02/2023 08:28:25
 
 
À
17/02/2023 12:27:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01686210
Message ID:
01686237
Vues:
40
Frx2any is also a good tool to do so.

Regards


>>>>>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.
>
>Heh... I think even I can handle that, thanks for the sample. The universalthread (I mean LevelExtreme) has never failed me thanks to people like you!
Harsh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform