Home General

Subreport prints repeated values

Hi.

I update to new version of reportbuilder. A old report that works fine begin to print error a sub report. Each time I print the information come that different ways.
I will show the image. First time the correct information, the second copmpletely wrong.

http://201.33.23.216/Rodrigo/RB.jpg

Comments

  • Hi Rodrigo,

    We will need more information about your report to track down a solution. The likely culprit is the event code associated with this report. I suggest taking a look at how this data is processed. Please create a simple example we can run here using only Delphi and RB components and send it to support@digital-metphors.com.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • That error hapens in a lot of reports. Theres no code, the report is only linked in a table an each time prints different.
  • edited August 2022
    Hi Rodrigo,

    ReportBuilder simply prints the data it is given. If the output is different for subsequent prints, that is what is being retrieved from the dataset.

    1. Are you using any data-aware controls such as a DBGrid that are connected to the same dataset as the report?

    2. If you create a simple demo that only includes a report, dataset, and button, do you get the same behavior?

    3. Try setting the Report.PreviewFormSettings.SinglePageOnly property to True and see if that helps.

    4. Try setting the Report.CachePages property to True and see if that helps.

    5. Please create a simple example we can run here using only Delphi and RB components and send it to support@digital-metphors.com.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Hi, Item 3 solves the problem perfectly. Thanks
Sign In or Register to comment.