Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XFRX or PDF for creating PDF reports?
Message
 
 
To
03/09/2005 14:04:25
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01046561
Message ID:
01046569
Views:
25
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform