Generating OpenOffice documents (ODF)
How to invoke the ODT/ODS output
It is pretty much the same as with the other targets:
LOCAL m.loSession, m.lnRetval m.loSession= xfrx("XFRX#INIT") m.loSession.initLog() m.lnRetVal = m.loSession.SetParams("output.odt",,,,,,"ODT") IF m.lnRetVal = 0 m.loSession.ProcessReport("report1") m.loSession.finalize() ENDIF
Developer Folder
Call SetOtherParams method with "DEVELOP" or "DEVELOPFOLDER" to define output folder for source files and folders of ODF.
Example:Â Â
m.loSession.setOtherParams("DEVELOP",.T.) m.loSession.setOtherParams("DEVELOPFOLDER","[FOLDER\]DEVELOPFOLDER")
Info fields
You can  put one to four custom fields into ODF file. The keywords are INFO1, INFO1_NAME, INFO2, INFO2_NAME, INFO3, INFO3_NAME, INFO4, INFO4_NAME.
Call SetOtherParams method with "INFO1" and "INFO1_NAME" to define INFO1 value and name.
Example:Â Â Â
m.loSession.setOtherParams("INFO1", "AnyValue") m.loSession.setOtherParams("INFO1_NAME","Field 1")Â
Language/Country specification
XFRX get Language/Country specification from OS locale informations, but you can call SetOtherParams method with "FO_LANGUAGE" and "FO_COUNTRY" to define own values.
Example:Â Â Â
m.loSession.setOtherParams("FO:LANGUAGE", "CS") m.loSession.setOtherParams("FO:COUNTRY", "CZ")
ODS/FODS/PFODS other parameters
The parameters DISPLAY_GRID_LINES, SHEET_PER_PAGE, NEXT_SHEET_NAME, NEXT_SHEET_NAME_EXPR, LEAVE_FULL_FIELD_CONTENT, ADDPAGENUMBERTOSHEETDISPLAYNAME, SHEETPAGEBREAK are same such as for XLS/XLSPLAIN.
ODT/FODT other parameters
The parameters NEXT_PAGE_NAME, NEXT_PAGE_NAME_EXPR are euqal to NEXT_SHEET_NAME, NEXT_SHEET_NAME_EXPR.Â