TFormer_GetPrintResult
Printing and Output · String encodings
Definition
Windows: ANSI; Unix: UTF-8
LPCSTR TFormer_GetPrintResult(HTFORM pInstance, ETFDataFormat eTFDataFormat, ERRCODE * peCode);
Windows only: UTF-16
LPCWSTR TFormer_GetPrintResultW(HTFORM pInstance, ETFDataFormat eTFDataFormat, ERRCODE * peCode);
Contract
Gets the data of the last print operation in specified format.
Call this function after TFormer_Print or TFormer_PrintToStream to get the data that has been gathered while printing. Specify the data to be gathered by a call to TFormer_SetPrintResultType before TFormer_Print or TFormer_PrintToStream.
Returns
The data that has been gathered while printing. This returned value is only valid if peCode is ErrOk (0).
Parameters
| Parameter / type | Description |
|---|---|
pInstanceHTFORM |
The TFORMer instance provided by a previous call to TFormer_Init |
eTFDataFormatETFDataFormat |
Specifies the format of the data to be returned |
peCodeERRCODE * |
Error code, |