Error TmyDBCheckBox not found on Template.LoadFromDatabase
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
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
This discussion has been closed.
Comments
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
Thank you, that's what I needed.
Best Regards,
Phil