Re: Dynamically adding a subreport to a page
Posted: Tue Sep 03, 2013 7:23 am
Hello.
There are 2 different issues in your reports.
1. The issue with redundant components.
I made some changes in your last report. Please, look at the ReportTitleBand1 and the HeaderBand1. You don't need those Panels, Data Band and GroupHeaders without conditions to build your report.
All those components make your reports hard to build and to change in future. As well your code is too complicated.
You could delete almost all other components with no effect on the final report. 2. The issue with Vertical Line Primitives.
At first I will repeat that if you remove all redundant components, it's will be possible to avoid using this very complicated component Line Primitives which slows down rendering of reports very much.
But nevertheless, here is a sample report where you could find out how to add just one vertical line. You could see the code on the Code tab. Please, pay attention on next moments:
As you see it's better to use Border property of the components then to create Line Primitives in code.
Thank you.
There are 2 different issues in your reports.
1. The issue with redundant components.
I made some changes in your last report. Please, look at the ReportTitleBand1 and the HeaderBand1. You don't need those Panels, Data Band and GroupHeaders without conditions to build your report.
All those components make your reports hard to build and to change in future. As well your code is too complicated.
You could delete almost all other components with no effect on the final report. 2. The issue with Vertical Line Primitives.
At first I will repeat that if you remove all redundant components, it's will be possible to avoid using this very complicated component Line Primitives which slows down rendering of reports very much.
But nevertheless, here is a sample report where you could find out how to add just one vertical line. You could see the code on the Code tab. Please, pay attention on next moments:
- you should add 2 points: StartPointPrimitive1 and EndPointPrimitive1
- the ReferenceToGuid property of these point should refer to Guid of VerticalLinePrimitive1
- the Parent of StartPointPrimitive1 is HeaderBand1 and the Parent of EndPointPrimitive1 is FooterBand1.
As you see it's better to use Border property of the components then to create Line Primitives in code.
Thank you.