如何将 RDLC 报告限制为 PDF 中的一页
我有一个 RDLC 报告,并将其显示在前端应用程序的报告查看器控件上。我完美地收到了报告,没有任何问题。
但当我尝试将报告导出为 PDF(使用可用选项 - 基本上是内置选项)时,问题就出现了。
我收到的报告有 3 页,而我的客户希望它在一页。我无法弄清楚其原因,因为在我的报告查看器中我只看到一页,但在 PDF 中有 3 页。我只有四列,没有数据,但它们仍然分成多个页面。第一页 2 栏,第二页 2 栏。不太清楚第三页发生了什么。有人建议更改默认打印机的纸张尺寸,但我认为不值得尝试。
可以做些什么来控制报告的大小吗???
I have a RDLC report and I am displaying it on the Report Viewer Control in my front end application. I get the report perfectly and theres no problem in it.
But the problem arises when I try to export the report to a PDF (using available option - basically the inbuilt option).
I get the report in 3 pages whereas my client wants it to be in a single page. I am not able to figure out the reason for it as in my report viewer I see only one page but in a PDF there are 3 pages. I have only four columns with no data, still they are breaking up into multiple pages. 2 columns on 1st page 2 on second page. Not real sure what happened to the 3rd page. Somebody recommended changing the paper size of the default printer but I didn't think is was worth trying.
Can something be done abt it so that I can control the size of the report???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能是真正的 PITA,但您可以采取多种措施来通过 BIDS 实现这一目标。
这应该会有所帮助。
This can be a real PITA but there are several things you can do to get you there in BIDS.
This should help.
你可以尝试设置 InteractiveHeight=0 ,我知道至少适用于 MHTML 输出,不确定 PDF,但它可能会引导你走向正确的方向
you can try setting InteractiveHeight=0 , I know that at least works for the MHTML output, not sure about PDF, but it might lead you in the right direction