Identifying Object's Autowidth value

Stimulsoft Reports.NET discussion
Post Reply
ssdev23
Posts: 10
Joined: Fri Jun 13, 2008 2:18 am

Identifying Object's Autowidth value

Post by ssdev23 »

Hi All,
I have a text field (Txtfield1) set on Autowidth = true, i wish to use it's width to identify its neighbor (Txtfield2) text field's Left position.

i.e. Txtfield1.Width = Txtfield2.Left
I've set it on a BeforePrintEvent of the Header that contain the textfield but doesnt work ok.
How I will be able to do it? Your thoughts please..

Thanks in advance!
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Identifying Object's Autowidth value

Post by Brendan »

Maybe the Dock property of the two text components can help?
If they are both Docked Left and the first one is set to AutoWidth = true then the second one should shift position.
Using the dock property will depend on your report layout though and the Z ordering or the two text components.
ssdev23
Posts: 10
Joined: Fri Jun 13, 2008 2:18 am

Identifying Object's Autowidth value

Post by ssdev23 »

Okay Brendan, let me try that one :)
Thanks!
Post Reply