StiTable Position in Report
StiTable Position in Report
Hi!
I want to adjust the position of a stitable in my report. Stitable does not provide properties like left or top to adjust the position in the report. I tried to set the position with
this.Table1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(3, 3, 19, 4);
but it does not work either because the ClientRectangle is always reset when switched to the preview mode.
Can you help me?
I want to adjust the position of a stitable in my report. Stitable does not provide properties like left or top to adjust the position in the report. I tried to set the position with
this.Table1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(3, 3, 19, 4);
but it does not work either because the ClientRectangle is always reset when switched to the preview mode.
Can you help me?
- Attachments
-
- StiTableReport.mrt
- (14.16 KiB) Downloaded 470 times
Re: StiTable Position in Report
Hello,
Please try to place Table component on the Panel component.
Thank you.
Please try to place Table component on the Panel component.
Thank you.
Re: StiTable Position in Report
This is what I'm looking for but I'am struggling with some problems though.
The table is inserted dynamically and cells are created with _table.CreateCell(). When I add the panel and place the table inside the panel and then call _table.CreateCell(), cells are not created.
Can you tell me why cells are created when the table is a descendant of the first page-component and they are not created when table is descendant of the panel?
The table is inserted dynamically and cells are created with _table.CreateCell(). When I add the panel and place the table inside the panel and then call _table.CreateCell(), cells are not created.
Can you tell me why cells are created when the table is a descendant of the first page-component and they are not created when table is descendant of the panel?
Re: StiTable Position in Report
Hello,
We couldn't reproduce this bug.
Please send us a simple project which reproduces the issue for analysis.
Also, please try to set the DockableTable property to false.
Thank you.
We couldn't reproduce this bug.
Please send us a simple project which reproduces the issue for analysis.
Also, please try to set the DockableTable property to false.
Thank you.
Re: StiTable Position in Report
Hi!
Thank you for your answer.
What I actually want I is properties like Left and Top to adjust the position of table cells. When I change the x coordinate of the clientrectangle the cell is shifted to right.
When I change the y coordinate of the clientrectangle I would expect that the cell is shifted to the bottom, but this is not. What can I do to shift the cell to the bottom?
I put a samle project in the attachments.
Thank you for your answer.
What I actually want I is properties like Left and Top to adjust the position of table cells. When I change the x coordinate of the clientrectangle the cell is shifted to right.
When I change the y coordinate of the clientrectangle I would expect that the cell is shifted to the bottom, but this is not. What can I do to shift the cell to the bottom?
I put a samle project in the attachments.
- Attachments
-
- 22-03-2017 11-11-40.png (39.04 KiB) Viewed 4522 times
-
- Sample.zip
- (62.81 KiB) Downloaded 264 times
Re: StiTable Position in Report
Hello,
Please check the position of the insert cells.
Also, please try to use the InsertColumnTo.. , InsertRow.. methods.
Thank you.
Please check the position of the insert cells.
Also, please try to use the InsertColumnTo.. , InsertRow.. methods.
Thank you.
- Attachments
-
- Capture.PNG (23.6 KiB) Viewed 4508 times
Re: StiTable Position in Report
Hello!
I do not know what you mean. I don't know how to use these insert methods.
How did you get the table shifted to the bottom in your sample? Can you send me your sample report?
I do not know what you mean. I don't know how to use these insert methods.
How did you get the table shifted to the bottom in your sample? Can you send me your sample report?
Re: StiTable Position in Report
Hello.
The Table is a complicated component. It was created to simplify creating of the reports in design mode.
The CreateCell() method is our internal method and you should not use it.
The Table component is converted to simple Data Band and Text components before compilation.
If you create the report in code you should better add a text components on a data band.
You can set the position of them as you need.
Please, look at the attached project. Thank you.
The Table is a complicated component. It was created to simplify creating of the reports in design mode.
The CreateCell() method is our internal method and you should not use it.
The Table component is converted to simple Data Band and Text components before compilation.
If you create the report in code you should better add a text components on a data band.
You can set the position of them as you need.
Please, look at the attached project. Thank you.