TFormer_Print
Definition
ERRCODE TFormer_Print(HTFORM pInstance);
Contract
Prints the current FormLayout using the adjusted DataSource.
Returns
ErrOk (0) in case of success, non-zero if an error occurred, ERR_TF_LICENSE_EXPIRED if a valid license is expired
Parameters
| Parameter / type | Description |
|---|---|
pInstanceHTFORM |
|
Remark
For Repository based FormLayouts:
Starts the output based on the selected Repository, Project, FormLayout name and data (see TFormer_SetXXXDataFile or TFormer_NewRecord, TFormer_SetVarValue).For stand-alone FormLayouts:
Starts the output based on the selected stand-alone FormLayout and the input data (see TFormer_SetXXXDataFile or TFormer_NewRecord, TFormer_SetVarValue).
Note
For a new instance with no supplied input data, the SDK uses the DataSource selected in the FormLayout. If no source is selected, or the special _Default_ source is selected, it reads the data saved alongside the layout in path/FormName.xml. When this companion file supplies the input, it must contain at least one record to produce output. If your application has no records to print, skip the print call.
Note
TFORMer uses a configuration file named TFORMer.xml for adjusting PostScript, PDF and HTML output options like form sizes, color mode and so on. Check out TFormer_SetConfigFile or refer to the TFORMer Developer Manual for more information.