Table in horizontal format

Stimulsoft Reports.NET discussion
Post Reply
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Table in horizontal format

Post by jpascual »

Hello, I want a table grows horizontally, as I can set the table for each new row is added to the right. And the headers are on the left side.

now
head1 head2 head3
content1 content5 content8
content2 content6 content9
content3 content7 content10

i want this
head1 content1 content2 content3
head2 content5 content6 content7
head3 content8 content9 content10

thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Table in horizontal format

Post by Alex K. »

Hello,

You can use databand with Cross-Header, Cross-Data and Cross-Footer.
Please see the sample report in attachment.

Thank you.
Attachments
634.Sample Report.mrt
(21.71 KiB) Downloaded 388 times
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Table in horizontal format

Post by jpascual »

Hi, thanks this option works.
But I have a problem if the DataSet does not return any records not displayed the head.
I need to display the header always though the table has no records. How I can fix it?

Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Table in horizontal format

Post by Alex K. »

Hello,

You can set properties "Print if Empty" on HeaderBand to true.

Thank you.
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Table in horizontal format

Post by jpascual »

CrossHeaderBand component has no such property.
That property if it exists in the component CrossDataBand (PrintIfDetailsEmpty) but if the frame as 'true' can not display the headers when no data.
Do I have to connect the header and data in some way to that mark in the show DataBand HeaderBand if no data?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Table in horizontal format

Post by Alex K. »

Hello,

In this case, as a way, you can put text components without HeaderBand instead of the Header and put Cross-Data Band on the panel.
Please see the sample report in attachment.

Thank you.
Attachments
635.SampleReport.mrt
(26.59 KiB) Downloaded 337 times
jpascual
Posts: 68
Joined: Mon Jul 12, 2010 6:45 am
Location: Palencia

Table in horizontal format

Post by jpascual »

ok, this option works. thank you very much for your help Aleksey.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Table in horizontal format

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply