如何防止字体超出文本框顶部?

发布于 2024-09-02 10:26:48 字数 441 浏览 3 评论 0原文

我在正在开发的 SSRS 2005 报告中使用条形码字体 (IDAutomationMC39H),虽然它在 BIDS 的预览中呈现良好,但如果我将结果导出为 PDF、打印结果或执行上述任何操作 (包括预览)在报表管理器中,条形码字体延伸到文本框的顶部。条形码本身的高度接近 20 像素,即使尺寸只有 12 像素。我尝试更改文本框的 CanGrow 值,但似乎即使设置了该值,条形码也不会向下推动文本框的底部边缘,它只是延伸到框的顶部。我还尝试调整文本框的大小以使其包含字体的整个高度,但即使将 VerticalAlign 设置为 Bottom,条形码仍然粘在文本框的顶部并溢出顶部。 请参阅此处的屏幕截图: http://imgur.com/JDC4Z.png

有谁知道如何强制绑定字体在盒子的顶部,而不是重叠它?

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://imgur.com/JDC4Z.png

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仙女山的月亮 2024-09-09 10:26:48

我尝试过让基于字体的条形码发挥作用,但没有取得真正的成功。最终让老板支付了 NeoDynamic BarCode Professional< /a> 效果很好,并且比字体具有更大的灵活性。

I tried with no real success to get font-based barcoding to work. Ended up getting the boss to pay for NeoDynamic BarCode Professional which works great and has a lot more flexibility than fonts.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文