Document Properties
This paragraph applies both to VFP 9 and VFP 8. The set… methods are implemented both in XFRXListener and XFRXSession classes.
The following methods can be called to set various document properties. When generating a Word document, all document properties have to be set before the first report is processed. When exporting to PDF, the properties have to be set before Finalize() method is called.
Example
LOCAL m.loSession m.loSession = EVALUATE([XFRX("XFRX#INIT")]) m.lnRetVal = m.loSession.SetParams("pdf.docx",,,,,,"NATIVE_FDOCX") IF m.lnRetVal = 0 m.loSession.setAuthor("author") m.loSession.setTitle("title") m.loSession.setSubject("subject") m.loSession.setKeywords("keywords") m.loSession.setCreator("creator") m.loSession.setProducer("producer") m.loSession.setCreationDate(CTOT("^1900-01-01 01:01:01")) m.loSession.setComments("comments") m.loSession.setCategory("category") m.loSession.setManager("manager") m.loSession.setCompany("company") ENDIF
Output | Author | Title | Subject | Keywords | Creator | Producer | CreationDate | Comments | Category | Manager | Company |
---|---|---|---|---|---|---|---|---|---|---|---|
setAuthor() | setTitle() | setSubject() | setKeywords() | setCreator() | setProducer() | setCreationDate() | Â setComments() | setCategory() | setManager() | setCompany()Â | |
yes | yes | yes | yes | yes | yes | yes (16.0) | no | no | no | no | |
DOC2PDF | yes | yes | yes | yes | - | - | - | - | - | - | - |
FDOC2PDF | yes | yes | yes | yes | - | - | - | - | - | - | - |
XPS | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | - | - | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) |
DOC | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes | yes | yes |
FDOC | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | - | - | yes (16.0) | yes | yes | yes | yes |
NATIVE_DOCX | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes | yes | yes |
NATIVE_FDOCX | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes | yes | yes |
RTF | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | - | - | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) |
FRTF | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | - | - | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) |
ODT | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes | yes | yes |
FODT | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes | yes | yes |
ODS | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes | yes | yes |
FODS | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes) | yes | yes |
PFODS | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes) | yes | yes |
XLS | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | - | - | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) |
XLSPLAIN | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | - | - | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) |
NATIVE_FXLSX | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes | yes | yes |
NATIVE_PFXLSX | yes | yes | yes | yes | - | - | yes (16.0) | yes | yes | yes | yes |
PLAIN | - | - | - | - | - | - | - | - | - | - | - |
HTML | yes | yes | yes | yes | - | - | yes (16.0) | no | no | no | no |
HTMLPLAIN | no | no | no | no | - | - | no | no | no | no | no |
MHT | yes | yes | yes | yes | - | - | yes (16.0) | no | no | no | no |
CNT / previewer | - | - | - | - | - | - | - | - | - | - | - |
BMP | - | - | - | - | - | - | - | - | - | - | - |
GIF | - | - | - | - | - | - | - | - | - | - | - |
EMF | - | - | - | - | - | - | - | - | - | - | - |
TIFFÂ | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | - | - | yes (16.0) | yes (16.0) | - | - | - |
JPEGÂ | yes (16.0) | yes (16.0) | yes (16.0) | yes (16.0) | - | - | yes (16.0) | yes (16.0) | - | - | - |
PNGÂ | - | - | - | - | - | - | - | - | - | - | - |
XFF | - | - | - | - | - | - | - | - | - | - | - |
XML | - | - | - | - | - | - | - | - | - | - | - |
- | - | - | - | - | - | - | - | - | - | - |