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

Ignoring Errors While Loading Templates

edited May 2005 in General
Hello,

I need to programatically load a series of several RB7 templates. After I
load each template, I need to examine particular labels for content. Then I
would load the next template in the library, and make a similar
determination. I will not be running the reports at this time, or saving
the tempates, only loading and evaluating the report templates for content.

The problem is in opening the templates. I receive the error dialog
indicating invalid properties, because the event handlers are not present in
the test application. Is there a way that you could suggest opening each
template and ignoring the errors. It is not practical for our clients to
open each template first, and then to save them to avoid the errors. I need
a way to ignore the errors, or prevent the errors from occuring when the
report templates are loaded.

Thank you for your help,
Michael Malinowski

Comments

  • edited May 2005
    Hi Michael,

    Unfortunately there is no way to suppress these errors unless you change the
    ReportBuilder source. If you take a look at the TppTemplate.LoadError event
    inside the ppTmplat.pas file, you will see where this dialog is being
    created and how all errors are being ignored after the first one if the user
    selects to do so.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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