TFormer_SetDatasourceName
Provide Data · String encodings
Definition
Windows: ANSI; Unix: UTF-8
ERRCODE TFormer_SetDatasourceName(HTFORM pInstance, LPCSTR pszDatasourceName);
Windows only: UTF-16
ERRCODE TFormer_SetDatasourceNameW(HTFORM pInstance, LPCWSTR pszDatasourceName);
Contract
Specifies the name of the user-defined DataSource to be used as JobData.
Use this function to specify the name of the user-defined DataSource which should be used as JobData for printing.
Returns
- ErrOk (0) in case of success, non-zero if an error occurred
Parameters
| Parameter / type | Description |
|---|---|
pInstanceHTFORM |
|
pszDatasourceNameLPCSTR / LPCWSTR |
|
Note
Cached data (set with TFormer_NewRecord and TFormer_SetVarValue or by importing data-files) are discarded.