actionashley
Josey Wales
- Local time
- Today, 01:30
- Joined
- Jun 16, 2010
- Messages
- 39
Hello all,
I have a report (label actually) that i need to print and I wrote some code to adjust the font size based on the length of the text so it fits on the label. My problem is the text is always at the bottom of the text box so when it is small it doesn't look right. Here is my basic font control code:
How do i center the text horizontally in the text box?
I have a report (label actually) that i need to print and I wrote some code to adjust the font size based on the length of the text so it fits on the label. My problem is the text is always at the bottom of the text box so when it is small it doesn't look right. Here is my basic font control code:
If Len(Description) < 20 Then
Description.FontSize = 10
Else
If Len(Description) < 30 Then
Description.FontSize = 8
Else
Description.FontSize = 6
End If
End If
How do i center the text horizontally in the text box?