Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XFRX or PDF for creating PDF reports?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01046561
Message ID:
01046569
Vues:
24
This message has been marked as the solution to the initial question of the thread.
>>
>>We're using XFRX for outputing reports to PDF and it works very good. You can use it 2 ways in VFP9: as ReporListener or the same way as in previous VFP versions. We're using it the old way because it has to work in VFP COM DLL.
>
>If you are saying it's good, I take your word for it, so I will upgrade. Since I don't know yet what ReportListener is in VFP 9 and I would like to implement it with a minimum effort (read: I am lazy <g>), I will follow your approach. I am actually right now trying to figure from their documentation .PDF file the quick way to run a VFP report and create a PDF file.
>
*loSession = XFRX("XFRX#INIT")
* Demo can be called only this way otherwise it will crash VFP
loSession = EVALUATE([XFRX("XFRX#INIT")])
lcOutputFile = "Temp.pdf"
llPreview = .T.
lcOutputType = "PDF"
lcReportName = "MyReport"
lnRetVal = loSession.SetParams(lcOutputFile, ,Not llPreview, , , , lcOutputType)
loSession.ProcessReport(lcReportName)
loSession.Finalize()
loSession = Null
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform