TFormer_SetPrinterType
Definition
ERRCODE TFormer_SetPrinterType(HTFORM pInstance, EPrinterType ePrinterType);
Contract
Sets the type of the generated output.
For file output, use TFormer_SetPrinterType to select the format and TFormer_SetOutputName to specify the filename. For printer output, select the printer with TFormer_SetPrinterName; on Windows, TFormer_SetOutputName can additionally specify the spool-job name.
As an alternative, you can also use TFormer_SetPrinterName with optional output-format prefixes.
An output-format prefix in TFormer_SetPrinterName implicitly selects the output type; a file-output prefix also sets the filename. See Printing and Export for how these settings interact.
Returns
ErrOk (0) in case of success, non-zero if an error occurred
Parameters
| Parameter / type | Description |
|---|---|
pInstanceHTFORM |
|
ePrinterTypeEPrinterType |
Specifies the type of output to be generated, see EPrinterType. |
Note
Select the output type before generating output.