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

ERRCODE TFormer_SetRepositoryName (HTFORM pInstance, LPCSTR pszFileName)
 Sets the filename of the Repository or the stand-alone FormLayout.
ERRCODE TFormer_SetPrinterType (HTFORM pInstance, EPrinterType ePrinterType)
 Sets the type of the generated output.
ERRCODE TFormer_SetPrinterName (HTFORM pInstance, LPCSTR pszPrinterName, DEVMODE *pDevMode)
 Sets type and name of the output device.
ERRCODE TFormer_SetJobTrayControlName (HTFORM pInstance, LPCSTR pszTrayControlName)
 Specifies the name of the JobTrayControl to be used for this Job.
ERRCODE TFormer_SetProjectName (HTFORM pInstance, LPCSTR pszProjectName)
 Specifies the Project-name for printing a Repository-based FormLayout.
ERRCODE TFormer_SetFormName (HTFORM pInstance, LPCSTR pszFormName)
 Specifies the name of the Repository-based FormLayout.
ERRCODE TFormer_SetNumberOfCopies (HTFORM pInstance, INT nCopies)
 Sets the number of document copies which should be printed.
ERRCODE TFormer_SetStartRowColumn (HTFORM pInstance, INT nStartCol, INT nStartRow)
 Selects the starting cell of the first label to be printed.
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).
ERRCODE TFormer_SetPageFromTo (HTFORM pInstance, UINT nPageFrom, UINT nPageTo)
 Sets the range of page-numbers to be the printed.
ERRCODE TFormer_SetConfigFile (HTFORM pInstance, LPCSTR pszFilename)
 Sets the configuration file for TFORMer Runtime.
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-2009 - all rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Wed Sep 2 16:01:09 2009 for TFORMer Runtime DLL/Shared Library with doxygen 1.5.8