How do I prevent a font from extending off the top of a textbox?

Posted by David Ellis on Stack Overflow See other posts from Stack Overflow or by David Ellis
Published on 2010-05-21T21:05:04Z Indexed on 2010/05/23 2:50 UTC
Read the original article Hit count: 297

Filed under:
|
|
|

I'm using a barcode font (IDAutomationMC39H) in an SSRS 2005 report I'm developing, and while it renders fine in the preview in BIDS, if I export the results to PDF, print the results, or do any of the above (including preview) in Report Manager, the barcode font is extending off the top of the textbox. The barcode itself is nearly 20px tall, even at only a 12pt size. I've tried changing the CanGrow value for the textbox, but it seems that even with that set off the barcode isn't pushing the bottom edge of the textbox downwards, it's simply extending over the top of the box. I've also tried resizing the textbox to allow it to contain the entire height of the font, but even with the VerticalAlign set to Bottom the barcode still sticks to the top of the textbox and overflows out the top. See screenshot here: http://bit.ly/9UfycP

Does anyone know how to force the font to be bound by the top of the box, instead of overlapping it?

© Stack Overflow or respective owner

Related posts about tsql

Related posts about reporting-services