StiTable Position in Report

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

StiTable Position in Report

Post by simgschw »

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?
Attachments
StiTableReport.mrt
(14.16 KiB) Downloaded 470 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: StiTable Position in Report

Post by Alex K. »

Hello,

Please try to place Table component on the Panel component.

Thank you.
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Re: StiTable Position in Report

Post by simgschw »

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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: StiTable Position in Report

Post by Alex K. »

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.
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Re: StiTable Position in Report

Post by simgschw »

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.
Attachments
22-03-2017 11-11-40.png
22-03-2017 11-11-40.png (39.04 KiB) Viewed 4521 times
Sample.zip
(62.81 KiB) Downloaded 264 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: StiTable Position in Report

Post by Alex K. »

Hello,

Please check the position of the insert cells.
Also, please try to use the InsertColumnTo.. , InsertRow.. methods.

Thank you.
Attachments
Capture.PNG
Capture.PNG (23.6 KiB) Viewed 4507 times
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Re: StiTable Position in Report

Post by simgschw »

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?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiTable Position in Report

Post by HighAley »

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.
DynamicCreateReport.zip
(15.46 KiB) Downloaded 290 times
Thank you.
Post Reply