Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to create a new report as a continuation of the previous report

$
0
0
I have a static report which content does not reach the end of the last report page producing an empty space. 

I want my next report to start from the very position the first report ends. This example demonstrates how to generate the second report starting with the end position of the first report's content. 

1. Iterate through the last page Bricks to find the bottommost one. Do so by using the NestedBrickIterator class.
2. Convert the resulting height value to measurement units used in your Report (use the GraphicsUnitConverter class). 
3. Create the next report and set the top indent equal to the calculated summary height.
For example, we can get the report's ReportHeaderBand (or create a new if it does not exist yet) and insert an XRPanel into the ReportHeaderBand. To add an indent, set the XRPanel.HeightF property to the calculated summary height value. 

As a result, the second report will be visually rendered from the end point of the first report (i.e., with the defined indentation).


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>