Error in report event code
in RAP
I'm using Delphi XE 10.2 with Report Builder version 22.04.
Sometimes, when I'm developing a report, I get an access violation in one of the report events where I've put code. Apart from putting messages in each of the report events, is there a quicker way of finding out in which event the error occurs?
Sometimes, when I'm developing a report, I get an access violation in one of the report events where I've put code. Apart from putting messages in each of the report events, is there a quicker way of finding out in which event the error occurs?
Comments
This is the message I'd like to see when I run the report.
How can I get it?
However, is it possible to have more specifications of the error, such as the line that is causing me the error in question
The goal is to guide users who design reports
In my testing, the same exception is raised whether in the Design Preview workspace or calling Report.Print from a button click.
For run-time Pascal code (Calc workspace), the exception indicates whether it is a compilation or a run-time error. It includes the event-handler name along with the exception message details.
It does not include the line number. I'll add this to the requested feature list, but I'm not sure how feasible it is within the present implementation.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I know it can be difficult to implement, or even unfeasible.
Thank you for trying.
Best regards