Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

Info

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

Code Block
linenumberstrue
LOCAL m.loSession

...

 

PDF only properties

Code Block
loSession.setCreator(<creator>)
loSession.setProducer(<producer>)
loSession.setCreationDate(<datetime>) && (since XFRX 15.8)

MS Word 97, MS Word 2007, MS Excel 2007 other properties

Code Block
loSession.setComments(<comments>)
loSession.setCategory(<category>)
loSession.setManager(<manager>)
loSession.setCompany(<company>)
loSession.setCreationDate(<datetime>) && (since XFRX 15.8)

Open Office/Libre Office Writer and Calc other properties

Code Block
loSession.setComments(<comments>)
loSession.setCreationDate(<datetime>) && (since XFRX 15.8)

HTML/MHT other properties

...


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() 
PDFyes

...

yesyesyesyesyes

...

yes (

...

16.

...

0)nononono
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)
DOCyesyesyesyes--

...

yes (

...

16.

...

0)yesyesyesyes
FDOC

...

yes (

...

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
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)
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
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)
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)yesyesyes

...

yes
NATIVE_PFXLSXyesyesyesyes--yes (

...

16.

...

0)yes

...

yesyesyes
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-----------