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

Error TmyDBCheckBox not found on Template.LoadFromDatabase

edited August 2014 in General
Hello,

I am using Delphi XE2, ReportBuilder 14.08, IBObjects 5.5.x and Firebird
database 2.1.

I have two applications which have a reporting module in common. One
application is a standard desktop application, the other a service
application.

I have a report which works in the desktop application, but when running
the same report from the service application, ReportBuilder shows an
error dialog box "Error Reading Template" - Class TmyDBCheckBox not found.

This poses two problems.
1) Why does the service application get this error? It is running the
same code - the report module is a class that is used in both
applications. So I know the Report Builder can work.

2) How to prevent the error dialog box from showing for a service
application? The error happens on a lReport.Template.LoadFromDatabase
command which is wrapped in a Try Except block. But this does not trap
the error dialog.

Thanks for your help,
Phil Horst

Comments

  • edited August 2014
    Hi Phil,

    1. To resolve the error add myChckBox to the uses clause

    2. The Report.Template.SupressErrorDialog and IgnoreErrors boolean
    properties can be used to control whether the error dialog is displayed and
    whether exceptions are raised when loading templates.


    Best regards,

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2014
    On 08/04/2014 12:21 PM, Nard Moseley (Digital Metaphors) wrote:

    Thank you, that's what I needed.

    Best Regards,
    Phil
This discussion has been closed.