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.
Column Widths in Table
Column Widths in Table
- 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
Re: Column Widths in Table
Hello.
Did you try to use Data Band with Text components. It's more easier.
Look at the attached project.
Thank you.
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
Re: Column Widths in Table
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).
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
Hello.
Thank you.
What problems did you have in this implementation?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.
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:So your answer didn't satisfy my answer. Maybe you could answer my question without stating another way of solving this task.
These files you could find in the folder where the Stimulsoft was installed.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).
Thank you.