Gnostice eDocEngine VCL Developer Guide
|
eDocEngine can create content in several text, spreadsheet and image formats. There is a document-creation "engine" component for each supported output format. The engine components are listed in this table.
Engine |
Output |
Bitmap images | |
Windows Clipboard data | |
DIF documents | |
EMF metafiles | |
XLSX Excel spreadsheets | |
XLS Excel spreadsheets | |
GIF images | |
HTML document | |
PDF documents | |
PNG images | |
JPEG images | |
Lotus 123 worksheets | |
Quattrro Pro spreadsheets | |
RTF documents | |
SVG images | |
SYLK files | |
Text files | |
TIFF images | |
WMF metafiles | |
XHTML documents |
There is an engine for each supported format. All engine components share a common API. For format-specific functionality, additional methods and properties are available.
To create a new document, you need to set the FileName property. Call BeginDoc to begin file creation. This will most likely create a new blank page by default. To create additional pages, you need to call NewPage.
The engines have several methods to render page elements such asĀ
These methods render page elements on the current page. The number of the current page is provided by the CurrentPage property. You can move forward and backward in the page index using the method SetWorkingPage.
Some other content creation methods render document-wide page elements such as headers, footers, watermarks, and stamps.
The engine will apply current pen and brush properties when drawing shapes. Text formatting is controlled by Font and TextFormatting. Table layout is specified by TableSettings property. Image settings are specified by ImageSettings property.
Page layout settings are specified by Page property. Page border settings are specified by PageBorder property.
When all content rendering operations are complete, call EndDoc. This will save the output to a file or stream.