PDF文本框包装问题 [英] PDF textbox wrapping problem

查看:81
本文介绍了PDF文本框包装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.NET页面上有一个ReportViewer控件,显示.rdml报告。该报告有一个包含几列的正文表,其中大多数列都是文本框报告控件。在网页上,报告显示正常。文本框
中的长文本控制适当的换行,文本框增长到多行,文本适合文本框控件的范围。当报表导出为PDF(使用ReportViewer的内置导出到PDF按钮)时,生成的PDF文件仍然包含
长文本,但文本从文本框控件溢出到列中的文本框控件中这是正确的。我已经尝试过CanGrow真假,并检查了所有字体。这就好像PDF导出代码认为列只是比实际更宽一点


知道为什么PDF会以这种方式呈现?


Visual Studio 2009,Microsoft.ReportViewer.WebForms.dll 9.0。


- glenn-

解决方案

嗨Glenn,


 


您是说您使用的是Visual Studio 2008并使用ReportViewer创建了一个Web应用程序控制以显示.RDLC报告?


 


如果是这样的话,基于我的测试时,生成的PDF在我的环境中始终是正确的。那么,您能否尝试安装最新的ReportViewer 2008服务包并再次测试它,
可在以下位置获得:
http://www.microsoft.com/downloads/en/details.aspx? FamilyID = bb196d5d-76c2-4a0e-9458-267d22b6aac6& displaylang = en


 



如果它仍然没有工作或我有什么误解,请告诉我。


 


谢谢


Tony Chai n


 

On an ASP.NET page there is a ReportViewer control that shows an .rdml report. The report has a body table with a few columns and most of these columns are textbox report controls. On the web page, the report displays just fine. The long text in the textbox controls wrap appropriately, the textbox grows to multiple lines, and the text fits within the confines of the textbox control. When the report is exported to PDF (using the ReportViewer's built-in export to PDF button) the generated PDF file stills wraps the long text, but the text spills over from it's textbox control into the textbox control in the column to its right. I've tried CanGrow true and false and checked all of the fonts. It's as if the PDF export code thinks that the columns are just a little bit wider than they really are.

Any idea why the PDF is rendered this way?

Visual Studio 2009, Microsoft.ReportViewer.WebForms.dll 9.0.


-glenn-

解决方案

Hi Glenn,

 

Do you mean you are using Visual Studio 2008 and have created a web application with the ReportViewer control to display a .RDLC report?

 

If so, based on my testing, the generated PDF is always correct in my environment. So, could you please try to install the latest services pack of ReportViewer 2008 and test it again, it is available at: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=bb196d5d-76c2-4a0e-9458-267d22b6aac6&displaylang=en

 

If it still doesn’t work or I have something misunderstood, please let me know.

 

Thanks

Tony Chain

 


这篇关于PDF文本框包装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆