TECIT_DLLSPEC ERRCODE TFormer_SetDatasourceName ( HTFORM  pInstance,
LPCSTR  pszDatasourceName 
)

Specifies the name of the user-defined 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.
[in] pszDatasourceName The name of the DataSource as defined with TFORMer Designer.
Remarks:
Use this function to specify the name of the DataSource to be used for printing.
See TFormer_SetRepositoryName for a detailed explanation of a Repository and a stand-alone FormLayout.
Note:
Must be called before TFormer_Print, but after TFormer_SetFormName. Cached data (set with TFormer_NewRecord and TFormer_SetVarValue or by importing data-files) are discarded.
See also:
TFormer_SetRepositoryName, TFormer_SetProjectName, TFormer_SetFormName, TFormer_SetDSParameterValue, TFormer_GetDatasourceName.

© 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