Page 1 of 1

Column Widths in Table

Posted: Mon Jan 14, 2013 3:05 pm
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.

Re: Column Widths in Table

Posted: Tue Jan 15, 2013 10:53 am
by HighAley
Hello.

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

Thank you.

Re: Column Widths in Table

Posted: Tue Jan 15, 2013 11:40 am
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).

Re: Column Widths in Table

Posted: Tue Jan 15, 2013 2:30 pm
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.