LOCAL m.loXFRX m.loXFRX = XFRX("XFRX#LISTENER") m.loXFRX.setLogFile("xfrx.log") m.lnRetVal = m.loXFRX.SetParams("test.pdf",,,,,,"PDF",,,,.T.) IF m.lnRetVal = 0 REPORT FORM test OBJECT m.loXFRX ELSE ?m.loXFRX.ErrorMessage(m.lnRetVal) ENDIF
XFRX also has a diagnostic mode (since XFRX 14.6) that you can use to detect bugs and setup errors. You can invoke the diagnostic mode by sending "XFRX#DIAGNOSIS" as the 1st parameter of XFRX and the log file name as the 2nd parameter. When run, the log file will list the version number, registration string, vcx, dll and fll file versions and locations and other information. Please review this file when dealing with setup problems and also please send it to us attached to support questions.
LOCAL m.lcPath m.lcPath=JUSTPATH(SYS(16))+"\" DO XFRX WITH "XFRX#DIAGNOSIS", m.lcPath+"DIAGNOSIS.TXT" MODIFY FILE (m.lcPath+"DIAGNOSIS.TXT") NOWAIT
External Diagnostic utility
Diagnostic mode is better and more extensive with "each" version. For old and older XFRX you can download external utility. Extract diagnosis.FXP from zip archive and copy it to folder with XFRX. Utility create file _xfrxdiag.log.
To echo Options dialog box settings to the Debug Output window
If you have problems with a particular report, please attach it to your email as well (if possible). Also, if your report is not too entangled with your environment and you'd be able to provide us with sample data that we could use to run your report, it would help us a lot in finding out what the problem is. Do not forget to code snippet of calls XFRX (XFRX#INIT not is XFRX#LISTENER).