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

Suppressing Error Message

edited July 2002 in General
How can I suppress the messagebox
"Cannot Generate Report. Could not run program: DetailBeforePrint..."?

For example the message appears if there is an error in RAP coding,
as I use "Datapipeline['FieldXYZ']" in code, but my data source
temporary has not a column 'FieldXYZ'. I would like to have in this
particular case an empty report(-viewer) without any errorbox or
message dialog.

How can I do this?

Thanks in advance

Michael

--
using NT4.0, D5, RB6.03

Comments

  • edited July 2002
    You should use PrintToDevices rather than print because that call will allow
    you to capture the thrown exception and handle it however you want. Print on
    the other hand traps the exception and does not give you any control over
    what happens.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.