fgl_report_setPDFAttachDocumentModelXML

Attaches a Document Model XML document to any PDF output.

Syntax

fgl_report_setPDFAttachDocumentModelXML (
fileName String,
fileDescription String)
  1. fileName - Specifies the file name of the embedded XML document.
  2. fileDescription- Specifies the description of the embedded XML document.

Usage

The function fgl_report_setPDFAttachDocumentModelXML embeds an XML document identical to what is produced by the API call fgl_reportSelectDevice("Document Model XML") to any PDF output. The PDF output is specified with the function fgl_report_selectDevice("PDF").

The XML document contains the data used in the report deisgn from which the PDF has been created. This is useful for processing the document electronically. For example, retrieving indexing information reliably from the structured XML data for the purpose of archiving an invoice PDF document on a document management system (DMS).

An example of the fgl_report_setPDFAttachDocumentModelXML function in use is seen when selecting the PDF output in the OrderReport demo. For more information, go to Run the Reports demo.