Auto width of two text fields

Stimulsoft Reports.NET discussion
Post Reply
TGoertler
Posts: 24
Joined: Wed Aug 25, 2010 9:16 am
Location: Gundelsheim/Germany

Auto width of two text fields

Post by TGoertler »

Hello,

I have 2 text fields in my report:

| Text 1 | | Text 2 |

Sometimes Text 1 could be bigger then before (depends on the Text data there).

Is it possible to expand or shrink the size of Text 2 dependent of the width of Text 1 (otherwise it will overlap Text 2) ?
What properties need to be set here?

It's something like the "anchor" property on a windows forms control.

I use VB.NET 2008 with the latest Stimulsoft.NET report.

Hope you can help me with this.

Thank you in advance.

Best Regards,
Thomas
xss
Posts: 64
Joined: Wed Jun 10, 2009 3:03 am
Location: Austria

Auto width of two text fields

Post by xss »

Hi Thomas,

you can Dock Text Fields as in .Net.

Cheers,
Xss
TGoertler
Posts: 24
Joined: Wed Aug 25, 2010 9:16 am
Location: Gundelsheim/Germany

Auto width of two text fields

Post by TGoertler »

Hi xss,

thank you for your reply. I tried to use the "dock" property of the Textfield 1 but when I set it to left then it's height changes to the whole size of the databand height.
The report looks like that:


| Text 1 | | Text 2 ... |
| Text 3 | | Text 4 ... |
| Text 5 | | Text 6 ... |
| Text 7 | | Text 8 ... |

Then on the next page it starts again at Text 1. The Databand has the size of a whole page. So how would you dock the Text Rows so that it uses the right width.
I couldn't use a table as the Text fields have different widths.

Is there a way to "dock" a textfield without changing the whole size of it?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Auto width of two text fields

Post by Alex K. »

Hello,

You can use the panel component.
Please see the sample report in attachment.

Thank you.
Attachments
663.SampleReport.mrt
(18.61 KiB) Downloaded 447 times
Post Reply