Page 1 of 1

Auto width of two text fields

Posted: Fri Oct 22, 2010 1:39 pm
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

Auto width of two text fields

Posted: Sat Oct 23, 2010 9:58 am
by xss
Hi Thomas,

you can Dock Text Fields as in .Net.

Cheers,
Xss

Auto width of two text fields

Posted: Mon Oct 25, 2010 2:57 am
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?

Auto width of two text fields

Posted: Mon Oct 25, 2010 3:12 am
by Alex K.
Hello,

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

Thank you.