Supress warning "Unable to load BeforePrint code..."
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
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
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com