调用打印界面

来源:互联网 发布:淘宝助理用户被冻结 编辑:程序博客网 时间:2024/06/05 17:22


var 

    PrinterSetupDialog1:TPrinterSetupDialog; 
begin 
  PrinterSetupDialog1:=TPrinterSetupDialog.create(nil); 
  if   PrinterSetupDialog1.Execute   then 
  begin 
        excel.application.ActivePrinter:=printer.Printers[printer.PrinterIndex]; 
        excel.printout; 
  end; 
  PrinterSetupDialog1.free; 
end;
原创粉丝点击