Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print to PDF with filename
Message
From
17/02/2023 12:06:09
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01686210
Message ID:
01686215
Views:
69
Likes (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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform