[英]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
)这就是我在那里的选项:(仅
Fill
和Border
)
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.Left
即
Body.Width = Report.Width - Report.Margins.Right - Report.Margins.Left
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.