Posted 3 August 2017, 3:18 pm ESTHi there,
I have the following scenario:
I'm building a report definition in runtime, and this report definition is a report - sub report structure, where the sub report contains a table and a chart.
From what I understood, I have to calculate the height of the report in the sub report and set it as the height of the sub report in order for it to be visible properly.
So far I've built a simple code that calculate the height of the chart with consts for the "bar" height, the header height and the X axis height. However, I'm using the full data for charts, while each sub report "instance", for each value of the parameter passed to the sub report, there is a different amount of rows for that chart, and thus the size should be different, and smaller then the size I've calculated for the entire data set.
Is there any generic way to do this and let the chart built itself with the amount of rows it has per appearance of the sub report?
I've attached an RDLX output of the algorithm.