Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print to PDF with filename
Message
De
22/02/2023 12:06:06
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
17/02/2023 11:32:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01686210
Message ID:
01686256
Vues:
67
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
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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform