问题描述
在ASP.NET页面上有一个ReportViewer控件,显示.rdml报告。该报告有一个包含几列的正文表,其中大多数列都是文本框报告控件。在网页上,报告显示正常。文本框
中的长文本控制适当的换行,文本框增长到多行,文本适合文本框控件的范围。当报表导出为PDF(使用ReportViewer的内置导出到PDF按钮)时,生成的PDF文件仍然包含
长文本,但文本从文本框控件溢出到列中的文本框控件中这是正确的。我已经尝试过CanGrow真假,并检查了所有字体。这就好像PDF导出代码认为列只是比实际更宽一点
。
知道为什么PDF会以这种方式呈现?
Visual Studio 2009,Microsoft.ReportViewer.WebForms.dll 9.0。
- glenn-
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-
这篇关于PDF文本框包装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!