Auto-adjust Header text width within a Cross-Data band

Stimulsoft Reports.NET discussion
Post Reply
Ozma
Posts: 1
Joined: Tue Apr 14, 2020 1:25 am

Auto-adjust Header text width within a Cross-Data band

Post by Ozma »

I have a Cross-Data band which contains column headers for the report that I am currently working on. These column headers needs to have a general header above them. How do I adjust the width of this header depending on the number of columns the cross-data band will produce? A rough example of this would be:

Example 1:

Code: Select all

              Header
----------------------------------
Column1  Column2  Column3  Column4
-------  -------  -------  -------
Example 2:

Code: Select all

                           Header
-------------------------------------------------------------
Column1  Column2  Column3  Column4  Column5  Column6  Column7
-------  -------  -------  -------  -------  -------  -------
Can this be possible to achieve? Thank you.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Auto-adjust Header text width within a Cross-Data band

Post by Lech Kulikowski »

Hello,

You can use DoublePass. In the first pass check count of all columns and in the second set the width of the Header.

Thank you.
Post Reply