Report.Template.SuppressErrorDialog is not applied to child reports

Hello,

I have been testing the property Report.Template.SuppressErrorDialog.

I set the value of the property and loaded the template from a stream:
Report.Template.SuppressErrorDialog := True;
Report.Template.LoadFromStream(lStream);

However I still got a warning "Unable to load BeforePrint...". After debugging the LoadError() method in ppTemplat.pas I have found out, that the value of the property does not seem to be transferred to child reports in the same template. While the main template has the property "SuppressErrorDialog" set to TRUE, the child report templates still have SuppressErrorDialog = FALSE. Therefore LoadError() still shows an error message when loading the child report template.

Is there a possibility to let ReportBuilder set the SuppressErrorDialog property of child reports automatically aswell?

Thanks in advance,
David Bakker

Comments

  • Hi David,

    Set Report.Template.IgnoreErrors True to ignore reader errors (the error is ignored, no dialog displayed, no exception raised)

    Set SuppressErrorDialog True and IgnoreErrors False, when you want to use try...except to handle errors.



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
Sign In or Register to comment.