Column Widths in Table

Stimulsoft Reports.NET discussion
Post Reply
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Column Widths in Table

Post by simgschw »

Hi,

I have struggled with column widths since a few days. I create a StiTable at runtime in c#.

Since I know the size of the strings inserted, the cols should be of a fixed size. The sum of col widths should be the table width (but Stimulsoft shows a bizarre behaviour --> see attached file).

In addition to the generated table with customized col widths the Stimulsoft Designer shows an extra column.

I want a reasonable answer to how I can handle this issue or at least a instruction to generate a table with fixed col widths.


Hope problem is stated clearly enough.
Attachments
Report_with_bizarre_behavior.mrt
Report shows extra column. Report contains a DataTable as Datasource. Each row of the DataTable should be mapped to the corresponding row in the StiTable.
(20.78 KiB) Downloaded 364 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Column Widths in Table

Post by HighAley »

Hello.

Did you try to use Data Band with Text components. It's more easier.
Look at the attached project.

Thank you.
Attachments
DynamicCreateReport.zip
(15.46 KiB) Downloaded 303 times
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Re: Column Widths in Table

Post by simgschw »

Hi,

I' ve already used this solution to solve my task. But this solution is not flexible enough for the formating of this task.
So your answer didn't satisfy my answer. Maybe you could answer my question without stating another way of solving this task.

By the way, your attached solution is not working because some xml and xsd files are missing (paths of these files are hardcoded in code).
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Column Widths in Table

Post by HighAley »

Hello.
simgschw wrote:I' ve already used this solution to solve my task. But this solution is not flexible enough for the formating of this task.
What problems did you have in this implementation?
simgschw wrote:So your answer didn't satisfy my answer. Maybe you could answer my question without stating another way of solving this task.
The StiTable isn't a native component. It's a complex combination of StiDataBand and several StiText components. You have set the wrong coordinates of the Cells and get mixed cells.
simgschw wrote:By the way, your attached solution is not working because some xml and xsd files are missing (paths of these files are hardcoded in code).
These files you could find in the folder where the Stimulsoft was installed.

Thank you.
Post Reply