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 / typeDescription
pInstanceHTFORM


The TFORMer instance provided by a previous call to TFormer_Init

pszDatasourceNameLPCSTR / LPCWSTR


The name of the DataSource as defined in the FormLayout

Note

Cached data (set with TFormer_NewRecord and TFormer_SetVarValue or by importing data-files) are discarded.

Search documentation

Search in
More scopes
Additional scopes

All contents