ERRCODE TFormer_Print ( HTFORM  pInstance  ) 

Prints the current FormLayout using the adjusted DataSource.

Returns:
- ErrOk (0) in case of success
- Non-zero if error occurred
Parameters:
[in] pInstance The TFORMer-Instance provided by a previous call to TFormer_Init.
Remarks:
  • 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:
Behavior if no input data was supplied: If no DataSource was specified (either by TFormer_SetXXXDataFile, TFormer_SetODBCData or via TFormer_NewRecord and TFormer_SetVarValue) the default data-file (located in the same directory as the FormLayout itself and generated by the last TFORMer Designer session) is used. If this default data-file does not exists no output will be produced. The name of the default data-file is path/FormName.xml.

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.

See also:
TFormer_SetRepositoryName, TFormer_SetProjectName, TFormer_SetFormName, TFormer_SetPrinterName, TFormer_SetTxtDataFile, TFormer_SetXmlDataFile, TFormer_SetConfigFile.


© 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