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

RB 22.02 - Exception calling Print Method

Hi, I am trying to print a report loaded dinamically from a Delphi code.
The report is loaded from .rtm file and after linked to a dataset by the pipeline.

When I run the program an exception is produced. Below I let a link to the stack screenshot :

https://drive.google.com/file/d/1YXetIckDLX2UXqHHyLGBhG4mBjVzyeG8/view?usp=sharing

I will be pleasure for any guide to solve this issue.
Thanks

Comments

  • Hi Gustavo,

    We will need more information about this issue to understand what is happening.

    How exactly are you loading and linking the report to data?

    Which version of ReportBuilder and Delphi are you using?

    If you add \RBuilder\Source to your library path, where does the exception occur in RB code?

    Are you able to recreate this with a simple example? If so, please send the example in .zip format to support@digital-metaphors.com and we will take a look.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2023
    Hi NIco, thanks for your response.
    I am trying to generate a .pdf file working with a project in Delphi Sidney with RB 22.02.

    Now I added the RBuilder\Source and I debugged the RB libraries.

    The exceptions is produced in ppComm.pas in method TppCommunicator.SendNotify(). If I add this IF before call to lCommunicator.Notify() passes without error.

    if Assigned(lCommunicator) then
    lCommunicator.Notify(aCommunicator, aOperation);

    But I think that something is wrong previously.

    If I put a breakpoint in the if, I see that FNotifyList have 7 elements with the first 6 in NIL and only the last element setted.

    The .rtm loaded for report is here:

    https://drive.google.com/file/d/1_5hk11AHpgQK-z4vVvWLp66P0WeejOLe/view?usp=sharing

    Thanks

    Gustavo
  • Hi Gustavo,

    We are unable to download your template because we do not have access.

    The issue is likely not in the Communicator. Please provide a screenshot of the complete call stack in Delphi when the error occurs. It would also be helpful to see the code you are using to load and connect the report.

    Please create a simple Delphi example demonstrating this issue using only RB and Delphi components and send it to support@digital-metaphors.com in .zip format and we will research a solution for you.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • In this link I left the call stack:
    https://drive.google.com/file/d/180rP0v7zsF9yPQVA1zToc2Fy1xMVmQyT/view?usp=sharing

    But now the error is not always thrown.

    I will try to do a simple application with the issue reproduced.

    Check the template link again, please

    Thanks
  • Hi Gustavo,

    Unfortunately the call stack does not give the whole picture although it is clear that it has something to do with data access. I do not see anything in particular with the template you posted that would cause this issue.

    Please work on creating a simple example that recreates this error so I can track down the issue here on my machine.

    It may also be helpful if you posted all the code you are using to print/export the report, and any event code pertaining to the report.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.