I have a composite report link with 7 grid report links linked to it.
Each of the 7 grid report links are linked to a grid with a single table gridview, in unbound mode. (Each grid appears in a tab of a page control).
When I print the report all is well when all of the gridviews have at least one row in them. However, if a gridview has no rows an exception is raised in
TdxPSCompositionReportRenderRowInfo.CalculateContentInfo
It is trying to access PageRenderInfo[0], which does not exist (presumably because the gridview has no rows).
I have attached a text file with two sections of information.
The first is text from the DFM which lists the properties of the TdxComponentPrinter, the TdxCompositionReportLink, and the linked TdxGridReportLink components.
The second is a madExcept bug report including a stack trace of the program.
Hello,
I was not able to reproduce this behavior with the latest version of our controls (VCL 12.2.3). Attached is an example (source and executable files), that operates as expected on my side. Please modify it to illustrate the problem, and attach it to your next message. We will examine it and do our best to find a solution. I am looking forward to hearing from you.
I have reproduced the problem.
The following properties must be set as indicated:
The TdxCompositionReportLink's StartEachItemFromNewPage property must be set to False.
The TdxGridReportLink's OptionsLevels UnWrap Property must be set to True.
The TdxGridReportLink's OptionsLevels SkipEmptyViews property must be set to True.
I have attached a modified sample project.
Hello,
We appreciate your valuable research. I have reproduced the described behavior and forwarded this ticket to our developers for further investigation.
Just to let you know, I have worked around this by setting SkipEmptyViews to false. I don't need an urgent fix.