This is a migrated thread and some comments may be shown as answers.

Altering Textboxes

1 Answer 14 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gersh
Top achievements
Rank 2
Gersh asked on 21 Oct 2009, 04:11 PM
Hey Guys, I have a simple question that I cannot answer.

I have a library of reports that I call successfully. I have a form with a report viewer which shows the report. The problem is, for this 1 report, a field does not require the entire size of the presized text box. I can easily resize the text box, but I fail to be able to move it to the right. userscore is the report object.

 

 

 
            userscore.detcol3.Value = "=average";  
            userscore.detcol3.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;  
            userscore.detcol3.Width *= .75;  
            userscore.detcol3.Style.BackgroundColor = Color.Teal;   
            userscore.detcol3.Location.X.Add(new Unit(1.0, UnitType.Inch)); 

 

 

1 Answer, 1 is accepted

Sort by
0
Gersh
Top achievements
Rank 2
answered on 21 Oct 2009, 08:57 PM
I found an acceptable solution, but I still wonder what I am doing wrong with Location.X.Add(Unit u);
My solution:
 
userscore.dethead3.Location = new PointU(new Unit(4, UnitType.Inch), new Unit(0, UnitType.Inch));  
 
Tags
General Discussions
Asked by
Gersh
Top achievements
Rank 2
Answers by
Gersh
Top achievements
Rank 2
Share this question
or