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

'sure' Printing

edited June 2002 in General
We want to print a report containing 'vouchers'. These vouchers are a kind
of cheques.
So wat we would like to to is to print one on each page and after having
printed the page register the voucher as issued and available for use. The
problem is that from time to time we launch huge series (up to 500.000).
For us it is important to know that if a paper-jam occured to now where
exaclty.
Until now we printed directly to the printer and page by page. This was the
safest way and we are happy with it.
But the layout starts to get more and more complicated and we would prefer
to do this with RB.
Is there a way to setup a report that it only prints the next page after the
previous one is printed correctly ??

Harry Leboeuf
Kinepolis Group

Comments

  • edited June 2002
    Hi Harry,

    I think you can use 'PRINTER_INFO_6', in Delphi PrinterInfo6 (Windows
    NT/2000/XP: Included in Windows NT 4.0 and later.
    Windows 95/98/Me: Unsupported.) to get the state of your printer.
    'printers.pas' shows how to deal with a PrinterInfo structure (you'll love
    Billy).

    regards,
    Chris Ueberall;

  • edited June 2002
    Instead of submitting the entire print job you can individually send each
    TppPage object to the printer device. You then should be able to query the
    printer for it's state to make sure that the voucher printed properly and if
    so register the voucher before sending the next page.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.