上面这个我试验还是不好用。
现在我试验出好用的了。如果可以请务必回复啊。试验了2个小时的成果。
Business.Forms.Printers.Printer.PrinterIndex:=1;
Borland.Delphi.Windows.SendMessage (Borland.Delphi.Windows.HWND_BROADCAST,
Borland.Delphi.Messages.WM_SETTINGCHANGE, 0, 0);
TSheetDoc(DocViewZCBXX_KBBD1.doc).Exporter.Printex(false, false);
Borland.Delphi.Windows.SendMessage (Borland.Delphi.Windows.HWND_BROADCAST,
Borland.Delphi.Messages.WM_SETTINGCHANGE, 0, 0);
TSheetDoc(DocView1.doc).Exporter.Printex(false, false); |