*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 >Sergey,
Q2.1: The paper size is wrong, landscape reports are generated as portrait. A2.1: Make sure you don't delete the information in the EXPR field of the first record of the page. XFRX doesn't use printer settings stored in the FRX file and uses PAPERSIZE and ORIENTATION values from the EXPR field of the first record. If they are not there, the default value is used, which can result in wrong orientation or wrong paper size.What is confusing above is that on one hand it says to NOT to delete EXPR field and then it says that XFRX DOES NOT USE printer settings stored in the FRX file.