Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Batch printing

edited October 2003 in General
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

Comments

  • edited October 2003
    Hey again Jeff!

    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.
  • edited October 2003

This discussion has been closed.