TFormer_SetPrinterType

Printing and Output

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


The TFORMer instance provided by a previous call to TFormer_Init

ePrinterTypeEPrinterType

Specifies the type of output to be generated, see EPrinterType.

Note

Select the output type before generating output.

Search documentation

Search in
More scopes
Additional scopes

All contents