Adjust text fields depending on each content

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Adjust text fields depending on each content

Post by Fabio Pagano »

Using pre-release build 2007.3.12.0 (17/10/2007) for Vs2005.

The task is apparently simple: in a band (eg. a group band) i have three text fields, with variable content length.

In the first field (from database) i have the definition (eg. "Miss", Mr.", "Dr."), in the second field (from database) i have the name (eg. "Smith") in the third field i have fixed ":".

I need that the second field (name) is in bold, so this is the final result i need:

"Mr. Smith:"
or
"Miss De Florence:"

How can i do this? I have tried using auto width but if the first fields grows in width, the second field doesn't shift to the right.

Note that the container band height may be more than one line: i have tried using dock property for the three fields but the band is high so the fields becomes high too.

Thanks.
ChristianH
Posts: 43
Joined: Fri May 25, 2007 2:54 am
Location: Austria

Adjust text fields depending on each content

Post by ChristianH »

Maybe containers could help.
Place the elements to be docked in a container and use the dock property.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Adjust text fields depending on each content

Post by EDV Gradl »

Maybe instead of three textboxes you should you one richtext control, in which you can format each part seperatly.

Marco
Post Reply