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

Error in report event code

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?

Comments

  • In the design, when I click on the Preview tab, I get a specific message telling me in which event the error occurred.
    This is the message I'd like to see when I run the report.
    How can I get it?
  • I saw that I have in which event I have the error.
    However, is it possible to have more specifications of the error, such as the line that is causing me the error in question
  • edited May 27
    Also, when an event has a compilation error and I run the report, I may get a message that the event could not be compiled.

    The goal is to guide users who design reports
  • Hi Marius,

    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
  • Hi Nard,

    I know it can be difficult to implement, or even unfeasible.
    Thank you for trying.

    Best regards
Sign In or Register to comment.