>>
>>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 = 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--