This is a migrated thread and some comments may be shown as answers.

Horizontal Centering of dynamics subreports

1 Answer 121 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stéphane
Top achievements
Rank 1
Stéphane asked on 12 Aug 2015, 07:13 PM

Hi,

I need to display 2 subreports side by side on a report.

The first one contain a table object with a variable columns number base on the data it need to show. That part is working ok.

The second subreport is fixed in width and must be place right of the first with a 1 cm space between them.

The problem I'm having, is that we need to center horizontally that subreports block.

I can't find a way to get the subreport1 width after it is rendered so I have the processed width not the design time one.

How can I do this? With code? And if so, any example of code?

Thank you.

​​

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 17 Aug 2015, 03:05 PM
Hello Stéphane,

Reports are templates repeated for the assigned to them data, where items are processed with data, measured and rendered. Modifying the template once the data processing is started is not recommended.

The SubReport item will grow in both horizontal and vertical directions to accommodate its content. Thus if you know the sizes of the dynamically built sub report, you can determine where to position the second sub report.

The layout can be arranged also by placing the SubReport items in List item's cells.


Let us know if you have any further questions.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Stéphane
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or