views:

996

answers:

2

I'm using Visual Studio 2008 and have created a Client Report Definition (.rdlc).

In this report I add a single Textbox and double it's height. When I change the TextAlign to "Center" it correctly centers the text, but when I set the VerticalAlign to "Middle" nothing happens. The textbox is big enough that it's obviously not aligned to the middle. Any ideas on why this happens and how to fix it?

A: 

What you described works fine for me. Do you have padding set correctly?

jimconstable
I didn't have the report viewer window setup yet, so I was basing this question on the design time behavior. TextAlign "center" works in the designer. However, VerticalAlign "Middle" doesn't. I was basing my findings on the design time behavior. Several other properties don't work in the designer but show up correctly once the report is ran.
Ezweb
I have a similar problem. What are correct padding settings to make it work?
Marek Grzenkowicz
Just make sure the top and bottom padding is the same.
jimconstable
A: 

I have a similar problem. The curious part of it is that two columns of the Table displays the text correctly vertical-aligned to the middle while other three columns display the text aligned to the top (can you imagine how nasty that looks?)

The single difference I found in the settings of the two correct textboxes vs the three incorrect textboxes is the Format field. I was trying to find info on this field, but found none (yet). The textboxes that align correctly have Format property set to "F4", while the other three textboxes have nothing there.

For starters I tried changing the Format property for only one of three and TATATAAAAAM: all three are now display OK.

VERY STRANGE

Tamas