Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print to PDF with filename
Message
From
22/02/2023 12:06:06
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01686210
Message ID:
01686256
Views:
66
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
Hi John,

I think the most simple way, all build in, is
loListener = .NULL.
loPreview = .NULL.
DO (_REPORTOUTPUT) WITH 1,m.loListener
* if preview (I guess I do this more for restore some settings)
DO (_REPORTPREVIEW) WITH m.loPreview
loListener.PREVIEWCONTAINER = m.loPreview
*****************************
* At least on my system, that's the trick, this will be the file name (without extension) on a simple PDF printer:
loListener.PRINTJOBNAME = cYourFileName
*****************************
REPORT FORM .... OBJECT m.loListener
I'm just blinded by XFRX, because it's better automation to FORCE pdf output.

Lutz

Update:
If you bind the report to the PDF printer, and run without PROMPT, it just goes to PDF file ...
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform