Text size dynamically
Posted: Mon Mar 12, 2012 4:39 am
Hi all.
I have a problem to set the size of a rectangle dynamically.
I have a text "Text10" and a Data Source I get the size of the text box for each record to paint.
I tried setting the value of the text: {this.Text10.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD (7.4, 0.1, DataSource.SizeText, 0.5)}
The report paints the first text to default size in the design. The second text is painted with the size of the first. The third with the size of the second.
Do you understand?
example:
My Data Source with 3 records.
1. 6
2. 8
3. 2
What the report shows:
1. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (default text size in design, 10.6)
2. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (6)
3. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (8)
So I show 3 records, but as the first is bad, all others are displayed wrong.
Can you help me?
I have a problem to set the size of a rectangle dynamically.
I have a text "Text10" and a Data Source I get the size of the text box for each record to paint.
I tried setting the value of the text: {this.Text10.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD (7.4, 0.1, DataSource.SizeText, 0.5)}
The report paints the first text to default size in the design. The second text is painted with the size of the first. The third with the size of the second.
Do you understand?
example:
My Data Source with 3 records.
1. 6
2. 8
3. 2
What the report shows:
1. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (default text size in design, 10.6)
2. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (6)
3. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (8)
So I show 3 records, but as the first is bad, all others are displayed wrong.
Can you help me?