TFormer_SaveXml
Provide Data · String encodings
Definition
Windows: ANSI; Unix: UTF-8
ERRCODE TFormer_SaveXml(HTFORM pInstance, LPCSTR pszFileName);
Windows only: UTF-16
ERRCODE TFormer_SaveXmlW(HTFORM pInstance, LPCWSTR pszFileName);
Contract
Saves the actual JobData as XML file in the internal TFORMer format.
All DataFields set by TFormer_SetTxtDataFile, TFormer_SetXmlDataFile, TFormer_SetODBCData or by TFormer_SetVarValue are cached internally. This function writes the cache to the specified file which can the be used with TFormer_SetDataFile.
Returns
ErrOk (0) in case of success, non-zero if an error occurred
Parameters
| Parameter / type | Description |
|---|---|
pInstanceHTFORM |
|
pszFileNameLPCSTR / LPCWSTR |
|
Note
Can be called after TFormer_SetXmlDataFile, TFormer_SetTxtDataFile, TFormer_SetODBCData or after TFormer_NewRecord.