我正在使用单元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;