PrintOptionsA
渲染和打印
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 PrintOptions 相同,字符串参数按当前 SetAnsiMode 代码页解释
此函数用于构造可作为 Options 参数使用的值
PrintDocument 函数
语法
Delphi
Function DLPrintOptionsA(InstanceID, PageScaling, AutoRotateCenter: Integer; Title: PAnsiChar): Integer;
DLL
int DLPrintOptionsA(int InstanceID, int PageScaling, int AutoRotateCenter, const char* Title);
参数
| PageScaling | 0 = 无 1 = 适合纸张 2 = 缩小大页面 |
|---|---|
| AutoRotateCenter | 0 = 不自动旋转页面 1 = 旋转页面以适应输出介质,并在页面上居中 -1 = 旋转页面以适应输出介质,并在页面上居中,但改为逆时针旋转 |
| Title | 文档标题。Windows 会在打印管理器和网络扉页中使用此标题 |