Printing a FormLayout
[DLL]

Adjust output options, print (or generate PDF, PostScript, HTML and ASCII) a Repository-based or stand-alone FormLayout. More...

Collaboration diagram for Printing a FormLayout:

Functions

TECIT_DLLSPEC ERRCODE TFormer_SetRepositoryName (HTFORM pInstance, LPCSTR pszFileName)
 Sets the filename of the Repository or the stand-alone FormLayout.
TECIT_DLLSPEC ERRCODE TFormer_SetPrinterType (HTFORM pInstance, EPrinterType ePrinterType)
 Sets the type of the generated output.
TECIT_DLLSPEC ERRCODE TFormer_SetPrinterName (HTFORM pInstance, LPCSTR pszPrinterName, DEVMODE *pDevMode)
 Sets type and name of the output device.
TECIT_DLLSPEC ERRCODE TFormer_SetJobTrayControlName (HTFORM pInstance, LPCSTR pszTrayControlName)
 Specifies the name of the JobTrayControl to be used for this Job.
TECIT_DLLSPEC ERRCODE TFormer_SetProjectName (HTFORM pInstance, LPCSTR pszProjectName)
 Specifies the Project-name for printing a Repository-based FormLayout.
TECIT_DLLSPEC ERRCODE TFormer_SetFormName (HTFORM pInstance, LPCSTR pszFormName)
 Specifies the name of the Repository-based FormLayout.
TECIT_DLLSPEC ERRCODE TFormer_SetNumberOfCopies (HTFORM pInstance, INT nCopies)
 Sets the number of document copies which should be printed.
TECIT_DLLSPEC ERRCODE TFormer_SetStartRowColumn (HTFORM pInstance, INT nStartCol, INT nStartRow)
 Selects the starting cell of the first label to be printed.
TECIT_DLLSPEC ERRCODE TFormer_SetOutputName (HTFORM pInstance, LPCSTR pszOutputName)
 This method is used for adjusting the output filename or the name of the spool-job (on Microsoft Windows printers).
TECIT_DLLSPEC ERRCODE TFormer_SetPageFromTo (HTFORM pInstance, UINT nPageFrom, UINT nPageTo)
 Sets the range of page-numbers to be the printed.
TECIT_DLLSPEC ERRCODE TFormer_SetConfigFile (HTFORM pInstance, LPCSTR pszFilename)
 Sets the configuration file for TFORMer Runtime.
TECIT_DLLSPEC ERRCODE TFormer_Print (HTFORM pInstance)
 Prints the current FormLayout using the adjusted DataSource.

Detailed Description

Adjust output options, print (or generate PDF, PostScript, HTML and ASCII) a Repository-based or stand-alone FormLayout.

This is the main class of TFORMer Runtime for generating output. The basic steps to generate output are as follows:

General Procedure
Task See Also Note
Create a DataSource DataSource A DataSource is used to pass data to a Job.
Provide data for the DataSource DataSourceRecordSet, DataSourceCsv, DataSourceOdbc, DataSourceXml Provide data programmatically or connect the DataSource with a file or a database. The DataSource is responsible to provide values for the DataFields required for the FormLayout to be printed.
Create a Job Job The Job class is the main class for printing a FormLayout.
Connect the Job with the DataSource DataSource If no DataSource is connected with the Job the default data for the FormLayout is used. This default data is identical to the data-set which was used for printing or previewing the FormLayout in the last TFORMer Designer session.
Adjust the properties of the Job The most important properties are the output-type and the name of the target device (OutputName, PrinterType or PrinterName). The order in which the properties are set is irrelevant. The method Print() takes care to apply the settings correctly.
Print() the Job Print() Generates the Job based on the FormLayout and DataSource in the required output format.

© 2006-2010 - all rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Wed Aug 17 13:20:39 2011 for TFORMer Runtime DLL/Shared Library with doxygen 1.6.3