Home General

Supress warning "Unable to load BeforePrint code..."

edited August 2011 in General
Hello,

is there a possibility to supress the display of warnings during the
rendering process of the report printing?

Example:
"Unable to load BeforePrint code for GroupHeaderBand2, no object with
this name found".

The warning message box halts the printing process, and we would like to
handle this error in a different way if it occurs.

Thank you,
David

Comments

  • edited August 2011
    Hi David,

    This error implies that there is a reference to an event handler saved
    with the template being loaded that does not exist in Delphi code.

    The template object has two properties to suppress these errors. Use
    the Template.IgnoreErrors to complete ignore the error dialog and
    exception, or the Template.SuppressErrorDialog to just ignore the dialog
    but still raise an exception.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.