简体   繁体   English

如何在报表查看器中定义主体尺寸? (视觉工作室 2010)

[英]How to define Body Size in Report Viewer ? (Visual studio 2010)

I create Report Viewer in my ASP.net project(.rdlc file) and I have problem when I export it to PDF.(I got extra blank page for every page).我在我的 ASP.net 项目(.rdlc 文件)中创建了报告查看器,但在将其导出为 PDF 时遇到了问题。(每页都有额外的空白页)。 I read a solution that I have to change the Body Size.我读了一个解决方案,我必须改变身体尺寸。 Body ->Properties -> Size .. , but I can't find size in Body Properties. Body ->Properties -> Size .. ,但我在 Body Properties 中找不到大小。 That's the option I have there: (only Fill and Border )这就是我在那里的选项:(仅FillBorder

这是一张图片

Where can I change the body size?我在哪里可以更改车身尺寸?

Thanks!!谢谢!!

You can set Body size by left-clicking on body area and pressing F4.您可以通过左键单击身体区域并按 F4 来设置身体大小

You also have to set Report Size and Margins by right-clicking outside your report (grey area).您还必须通过在报告外(灰色区域)单击鼠标右键来设置报告大小边距

Note that Report size include Margins so you have to set Body size according to this;请注意,报告大小包括边距,因此您必须根据此设置正文大小 ie Body.Width = Report.Width - Report.Margins.Right - Report.Margins.LeftBody.Width = Report.Width - Report.Margins.Right - Report.Margins.Left

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2010报表查看器 - Visual Studio 2010 Report Viewer 如何使用Visual Studio报表查看器显示报表服务报表 - how to use visual studio report viewer to show reporting service reports Visual Studio 2010,本地SSRS报表查看器14,预览为空,但导出和打印工作正常 - Visual Studio 2010, Local SSRS Report Viewer 14, Preview is empty, but Export and Print work fine 可以在Visual Studio 2008中使用Report Viewer 2010控件吗? - Can Report Viewer 2010 control be used in Visual studio 2008 without problems? 发布到服务器Visual Studio 2010时,Crystal报表查看器无法显示 - Crystal report viewer is not able to display when publish to server visual studio 2010 如何修复 Visual Studio 2019 中的报表查看器错误? - How do I fix the report viewer error in Visual Studio 2019? Visual Studio 中的报告查看器配置错误 - Report Viewer Configuration Error in Visual Studio 如何使用Visual Studio报表查看器将参数或值传递给报表服务报表 - How to pass a parameter or a value to reporting service report using visual studio report viewer 无法使用报表查看器 Visual Studio 2008 加载报表 - Cannot load Report using Report Viewer Visual Studio 2008 如何使用 aspx 编辑 SSRS 报表查看器控件的 CSS 样式? (视觉工作室 2022) - How to edit the CSS styling for SSRS Report Viewer controls with aspx? (visual studio 2022)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM