TPDFlibPrintSettings
Data Types
描述
TPDFlibPrintSettings 汇集 PrintDocumentAdvanced 和 PrintPagesAdvanced 接受的 Windows DEVMODE 值
语法
Delphi
type TPDFlibPrintSettings = record
Copies: Integer;
Collate: Integer;
Duplex: Integer;
Orientation: Integer;
Color: Integer;
PrintQuality: Integer;
PaperSize: Integer;
DefaultSource: Integer;
IgnoreHardMargin: Integer;
end;
字段
| Copies | 0 保留打印机默认值,否则使用 1 至 32767 |
|---|---|
| Collate | 0 保留打印机默认值,1 请求逐份打印 |
| Duplex | -1 或 0 保留默认值,1 选择单面打印,2 选择长边双面打印,3 选择短边双面打印 |
| Orientation | -1 或 0 保留默认值,1 选择纵向,2 选择横向 |
| Color | -1 或 0 保留默认值,1 选择单色,2 选择彩色 |
| PrintQuality | -1 或 0 保留默认值,1 至 4 选择高、中、低或草稿质量,5 至 4800 指定 DPI |
| PaperSize | -1 或 0 保留默认值,否则使用适合 DEVMODE.dmPaperSize 的正 DMPAPER_* 或驱动程序定义标识符 |
| DefaultSource | -1 或 0 保留默认值,否则使用正 DMBIN_* 或驱动程序定义的进纸盒标识符 |
另请参阅
设置各个成员之前,请使用 Default(TPDFlibPrintSettings) 或 FillChar 初始化该记录
另请参阅
PrintPagesAdvanced、PrintDocumentAdvanced、GetPrinterCapabilities