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 


OutputAuthorTitleSubjectKeywordsCreatorProducerCreationDate

Comments

Category

Manager

Company


setAuthor()setTitle()setSubject()setKeywords()setCreator()setProducer()setCreationDate() setComments()setCategory()setManager()setCompany() 
PDFyesyesyesyesyesyesyes (16.0)nononono
DOC2PDFyesyesyesyes-------
FDOC2PDFyesyesyesyes-------
XPSyes (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)
DOCyesyesyesyes--yes (16.0)yesyesyesyes
FDOCyes (16.0)yes (16.0)yes (16.0)yes (16.0)--yes (16.0)yesyes yesyes
NATIVE_DOCXyesyesyesyes--yes (16.0)yesyesyesyes
NATIVE_FDOCXyesyesyesyes--yes (16.0)yesyesyesyes
RTFyes (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)
FRTFyes (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)
ODTyesyesyesyes--yes (16.0)yesyesyesyes
FODTyesyesyesyes--yes (16.0)yesyesyesyes
ODSyesyesyesyes--yes (16.0)yesyesyesyes
FODSyesyesyesyes--yes (16.0)yesyes)yesyes
PFODSyesyesyesyes--yes (16.0)yesyes)yesyes
XLSyes (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)
XLSPLAINyes (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_FXLSXyesyesyesyes--yes (16.0)yesyesyesyes
NATIVE_PFXLSXyesyesyesyes--yes (16.0)yesyesyesyes
PLAIN-----------
HTMLyesyesyesyes--yes (16.0)nononono
HTMLPLAINnononono--nonononono
MHTyesyesyesyes--yes (16.0)nononono
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-----------
Print-----------