Delphi DX10无需对话即可打印到XPS

时间:2017-03-23 23:29:34

标签: delphi printing xps

我正在使用单元Tprinters而不是TDocInfo

我想打印到带有预定义文件名的XPS文件。如何阻止“saveAs”弹出对话框?

printer.setPrinter('Microsoft XPS Document Writer','','',0);
// I want something like : printer.fileName := 'myXPS.xps';
printer.BeginDoc; // here pops up the "saveAs" dialog but I don't it as I know the filename
.........
printer.endDoc;

0 个答案:

没有答案