PrintOptionsA

Rendering and printing

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to PrintOptions and string arguments are interpreted using the current SetAnsiMode code page

This function is used to construct a value that can be used as the Options parameter to the

PrintDocument function.

Syntax

Delphi

Function DLPrintOptionsA(InstanceID, PageScaling, AutoRotateCenter: Integer; Title: PAnsiChar): Integer;

DLL

int DLPrintOptionsA(int InstanceID, int PageScaling, int AutoRotateCenter, const char* Title);

Parameters

PageScaling0 = None 1 = Fit to paper 2 = Shrink large pages
AutoRotateCenter0 = Do not rotate pages automatically 1 = Rotate pages to fit on the output medium, and center on the page -1 = Rotate pages to fit on the output medium, and center on the page but rotate anticlockwise instead.
TitleThe title of the document. This title is used by Windows in the Print Manager and for network title pages