TFormer_SetProjectName
Printing and Output · String encodings
Definition
Windows: ANSI; Unix: UTF-8
ERRCODE TFormer_SetProjectName(HTFORM pInstance, LPCSTR pszProjectName);
Windows only: UTF-16
ERRCODE TFormer_SetProjectNameW(HTFORM pInstance, LPCWSTR pszProjectName);
Contract
Specifies the Project-name for printing a Repository-based FormLayout.
When using a Repository-based FormLayout use this function to provide the Project name. In addition the name of the FormLayout must be set using TFormer_SetFormName.
Do not use this property for a stand-alone FormLayout.
Returns
- ErrOk (0) in case of success, non-zero if an error occurred
Parameters
| Parameter / type | Description |
|---|---|
pInstanceHTFORM |
|
pszProjectNameLPCSTR / LPCWSTR |
|
Note
Call this function before TFormer_SetFormName. Cached data (set with TFormer_NewRecord and TFormer_SetVarValue or by importing data-files) as well as the actual FormLayout are discarded.