Release date: 30 Nov 2013
The new output type can generate Word documents in docx (OpenXML) format both in the standard and flow layout. The generated documents are equivalent to the standard word documents generated by XFRX and can be opened in Word versions 2003 (with a plugin), 2007 and newer. The output type codes are "NATIVE_DOCX" (standard) and "NATIVE_FDOCX" (flow layout).
Output type code | Standard layout | Flow layout | Output format | Word version needed to generate | Word version needed to view |
---|---|---|---|---|---|
DOC | yes | no | DOC | 2000+ | 2000+ |
FDOC | no | yes | DOC | 2000+ | 2000+ |
NATIVE_DOCX | yes | no | DOCX | none | 2003+ |
NATIVE_FDOCX | no | yes | DOCX | none | 2003+ |
Usage:
All you need to do is to specify NATIVE_DOCX or NATIVE_FDOCX. This is a pure VFP implementation so no other setup is needed, except MD5.FLL library MD5.FLL, which is a free library implementing the MD5 algorithm. MD5.FLL was written by Duke Lotherington, Visual Records Consulting, 3944 Murphy Canyon Rd, San Diego CA 92123, duke@visualrecords.com (http://www.leafe.com/dls/vfp)
loSession= xfrx("XFRX#INIT") lnRetVal = loSession.SetParams("output.docx",,,,,,"NATIVE_FDOCX") IF lnRetVal = 0 loSession.ProcessReport("report1") loSession.finalize() ENDIF |
loxfrx = XFRX("XFRX#LISTENER") lnRetval = loxfrx.SetParams("output.docx",,,,,,"NATIVE_FDOCX") IF lnRetval = 0 REPORT FORM report1 OBJECT loxfrx ENDIF |