Simulating sections

Stimulsoft Reports.NET discussion
Post Reply
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

Simulating sections

Post by patwolf »

Hi,

I have a dataset where I would like to represent the data in different rows differently.
For example each row has a Type column. If Type = P the row should look different to a row with Type = T
A Type: P
.A1 Type: S
..A1-1 Type: C
..A1-1-1 Type: T
..A1-1-2 Type: T
..A1-2 Type: C
..A1-2-1 Type: T
..A1-3 Type: C
.B1 Type: S
..B1-1 Type: C

I'm used to sections in Crystal Report where I can just say suppress this section / row if Type P.
So I tried to simulate sections in Report.NET 2008.1 by using containers...
I set enabled to false and used a condition to enable the row if e.g. Type = P.
So now I had:

BAND:
Container: P
Container: S
Container: C

It seemed to work but the problem is that Report.NET only resizes a band to the last printed container.
So if the row has Type = S the report would print like this:

BAND:

Container: S
and leave a space where Container: P used to be.

So unfortunately I can't use it like sections or tables in other reporting software.

Is there any work around please? Is there any plan to implement a table or section like structure?
Could I simulate it with different bands (it's a hierarchical data structure by the way)?
I also tried using the "Shift Mode" = Decreasing Size by the way but it didn't help.

Thanks,
Patrick

Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Simulating sections

Post by Vital »

Hello Pat,

In sample report Sample01.mrt set CanShrink property of HierarchicalBand to true. After then for containers SceneContainer and SequenceContainer set Dock property to Top.

Thank you.
Post Reply