Batch printing
I have a series of archived reports. I would to be able to display a print
dialog once, to get printer name, etc. then when the dialog is closed to go
through and print each of the archived reports using the settings from that
dialog. Is there a demo on how to do this or can anyone suggest how this
might be done.
Thanks
Jeff
dialog once, to get printer name, etc. then when the dialog is closed to go
through and print each of the archived reports using the settings from that
dialog. Is there a demo on how to do this or can anyone suggest how this
might be done.
Thanks
Jeff
This discussion has been closed.
Comments
You could use the standard delphi print dialog to retrieve the printer name,
number of copies, etc. and then just use the TppArchiveReader by setting:
//don't show any dialogs...
ppArchiveReader1.ShowCancelDialog := False;
ppArchiveReader1.ShowPrintDialog := False;
//set whatever is necessary, like bin name orientation, etc
ppArchiveReader1.DeviceType := 'Printer';
ppArchiveReader1.ArchiveFileName := 'ABC.raf';
ppArchiveReader1.PrinterSetup.Copies := 1; {from your print dialog}
ppArchiveReader1.PrinterSetup.PrinterName := 'HP4000'; {from your print
dialog}
....
and loop through the list of archive files you want to print.
Regards,
Chuck Van Acker
Alogent Corp.