cFrx= YourFrx =frx2rs(cFrx, 5 , .t. ) *Goes straight to PDF
=frx2rs(cFrx)
*Invokes RS preview from where you can also produce pdf and send it via email.
To merge multiple frx-es into one you need little bit more code local oRS oRS = GetRsObject() oRS.lAutoFirstPage=.f. local cFrx1,cFrx2 with oRS .OpenSession() cFrx1 = HOME() + 'SAMPLES\SOLUTION\REPORTS\' + 'ledger.FRX' cFrx2 = HOME() + 'SAMPLES\SOLUTION\REPORTS\' + 'Colors.FRX' cFrx3 = home()+ 'tools\Filespec\' + '60frx1.FRX' .LoadFrx(rsFrx(cFrx1 )) &&Import result of frx for given scope .LoadFrx(rsFrx(cFrx2 )) &&Import result of frx for given scope .LoadFrx(rsFrx(cFrx3 )) &&Import result of frx for given scope .CloseSession() endwith oRs.Output( 5 , .t. ) && to PDF with previewPDF is done using Dorin Vasilescu wrapper of HARU pdf library