>>>>Hi,
>>>>
>>>>I am using XFRXLIB to convert reports to PDF format. It works pretty much in 99% of the cases.
>>>>
>>>>But today I just discovered that for one report that uses 3 data bands, the resulting PDF is cut-off right after the first data band. I have one report with 2 data bands and XFRXLIB converts this report to PDF. Could the 3rd data band be what breaks it?
>>>>
>>>>My version of XFRXLIB must be pretty old (the date on the XFRXLIB.FLL is 2006).
>>>>Do you know if this is a bug in XFRXLIB and I need to update it to the latest version?
>>>>
>>>>TIA
>>>>
>>>>UPDATE. I changed the report to 2 bands and still a problem. The Header of the 2nd page does not print and it cuts off right after it prints the first line of the 2 data band.
>>>
>>>XFRX from 2006?
>>>
>>>It's very old version. XFRX#INIT has not support for multidetail band in the version.
>>>But XFRX#LISTENER yes.
>>>
>>>MartinaJ
>>
>>Martina,
>>
>>Do you what the XFRX has changed as far as the method named ProcessReport?
>>
>>When I change my code to use the code you suggested (XFRX#LISTENER), I get error that property name ProcessReport not found.
>>
>>Here is my code:
>>
>> loSession = XFRX("XFRX#LISTENER")
>> lcOutputFile = tcReportPdfName
>> llPreview = .F.
>> lcOutputType = "PDF"
>> lnRetVal = loSession.SetParams(lcOutputFile, ,Not llPreview, , , , lcOutputType)
>>
>> loSession.ProcessReport(tcReportFrxName)
>>
>>
>> loSession.Finalize()
>>
>>
>>TIA
>
>Hi,
>
> XFRX#LISTENER is report listener. See to:
https://eqeuscom.atlassian.net/wiki/spaces/DOC/pages/3899432/Running+XFRX>
>
>USE demoreps\invoices ORDER customer
>LOCAL m.loSession, m.lnRetval
>m.loSession = XFRX("XFRX#LISTENER")
>m.lnRetval = loSession.SetParams("output.pdf",,,,,,"PDF")
>IF m.lnRetval = 0
> REPORT FORM report1 OBJECT m.loSession NOPAGEEJECT
> REPORT FORM report2 OBJECT m.loSession
>ELSE
> ? m.lnRetval
>ENDIF
>
>
>MartinaJ
Thank you! I will try this code with my version of XFRXLIB.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham