Problem using Cross Headers on Pages with unlimited Width

Stimulsoft Reports.NET discussion
Post Reply
alex2u
Posts: 8
Joined: Mon Oct 01, 2007 5:05 am
Location: Germany

Problem using Cross Headers on Pages with unlimited Width

Post by alex2u »

Hi,

I want to display a cross table using cross data Bands. The columns (cross Data Bands) won't fit on one page, so I set the unlimited width property to true(in page properties). I also want to display the cross header on every following page that is created because of the unlimited height property. It didn't work, even though I set the "Print On" Property to All Pages. What can I do to have the cross header sidplayed on every single page?


It would also be ok, if the unlimited width property was set to false and the additional pages would be displayed vertically. But if I set the unlimited width property to true, the columns that don't fit on the first page are not displayed anymore. Is there any way to have them displayed?


Thanks in advance

Alex
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem using Cross Headers on Pages with unlimited Width

Post by Edward »

Please open the attached report in the Demo.exe sample application from the standard delivery.

The following parameters must be set too:
report.NumberOfPass = Double Pass

Report.EndRenderEvent:

Code: Select all

{
 Variable1 = this.RenderedPages["Page1"].SegmentPerWidth;
 Cross_Data2.CountData = Variable1;
}
Variable1 - it is an int type variable from the report Dictionary.

Because the report is set to Double Pass, then during the first pass in the EndRenderEvent we can find out the SegmentPerWidth property and set CountData of the CrossDataBand. This DataBand is placed on the PageHeader.

Thank you.
Attachments
39.PageHeader_For_SegmentsPerWidth.mrt
(17.54 KiB) Downloaded 285 times
alex2u
Posts: 8
Joined: Mon Oct 01, 2007 5:05 am
Location: Germany

Problem using Cross Headers on Pages with unlimited Width

Post by alex2u »

Thanks for the quick response. Unfortunately, I think there was a slight misunderstanding.

I didn't want know how to display Page Header Information, I wanted to know how to have the Cross Header Information on each page. As you know, you can put a Cross Data Band and a Cross Header into a Data Band. The Cross Data Band Information is displayed correctly, but I can't get the Cross Header to be displayed on every page. (first image shows you what it should look like)

Image


And there is a second Problem: When setting the unlimited width property of the page to false, the CrossDataBand content that cannot be displayed on the first page (and that would be displayed on the following pages if the unlimited width property was set to true), won't be displayed at all. Is there a way to make it look like in the second image?

Image
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem using Cross Headers on Pages with unlimited Width

Post by Edward »

alex2u wrote:how to have the Cross Header Information on each page. As you know, you can put a Cross Data Band and a Cross Header into a Data Band. The Cross Data Band Information is displayed correctly, but I can't get the Cross Header to be displayed on every page. (first image shows you what it should look like)
Unfortunately it is impossible in the current version of the Stimulsoft Reports.Net.
alex2u wrote:And there is a second Problem: When setting the unlimited width property of the page to false, the CrossDataBand content that cannot be displayed on the first page (and that would be displayed on the following pages if the unlimited width property was set to true), won't be displayed at all. Is there a way to make it look like in the second image?
No, this result couldn't be achieved with using of the Cross Bands, because they could grow only to the new Segment of the page, not into the new page.

Thank you.
Post Reply