如何将 RDLC 报告限制为 PDF 中的一页

发布于 2024-09-17 18:02:51 字数 292 浏览 1 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

能否归途做我良人 2024-09-24 18:02:52

这可能是真正的 PITA,但您可以采取多种措施来通过 BIDS 实现这一目标。

  1. 要查看 pdf 的外观,请使用预览模式工具栏上的“打印布局”按钮。
  2. 转到报告属性并根据需要设置方向和纸张尺寸。
  3. 请记住报表属性中的边距,以使报表显示区域更小。我通常将它们设置为小于默认值。
  4. 返回到您的报告项目并确保它们小于(页面大小 - 边距)

这应该会有所帮助。

This can be a real PITA but there are several things you can do to get you there in BIDS.

  1. To see what it will look like as a pdf use the "Print Layout" button on the preview mode toolbar.
  2. Goto the report properties and set the orientation and paper size as you need them.
  3. Remember the margins in the report properties to make your report display area smaller. I generally set these smaller than the defaults.
  4. Go back to you report items and make sure they are smaller than (pagesize - margins)

This should help.

茶色山野 2024-09-24 18:02:52

你可以尝试设置 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文