有没有办法通过.NET Crystal API 打印交叉表水晶报表的所有页面?

发布于 2024-08-12 11:28:59 字数 522 浏览 2 评论 0原文

我们通过 Crystal .NET API PrintToPrinter 方法打印 Crystal 报表。最近发现,在打印交叉表报表(水平跨越多个页面的报表)时,只打印第一页,而其他“虚拟”页面则不打印。我们可以在 .NET Crystal Report Viewer 控件中很好地预览报表,它们会显示我们期望的宽报表,但是当我们使用 PrintToPrinter() 方法打印时,输出绝对不是我们刚刚在预览中看到的内容。仅打印第一页,您可以看到应被剪掉的第二页的开头。

通过 Crystal Designer 打印时,其他页面将按预期打印。另外值得注意的是,当我们通过 .NET Crystal Report Viewer 控件上的“打印”按钮进行打印时,它还会打印所有预期的页面(它们只是没有像通过 Crystal Designer 打印时一样分页)。

只有 PrintToPrinter 方法(两者都覆盖)似乎只打印交叉表报告的第一页。

我想知道是否需要以编程方式进行设置才能完成这项工作,或者我是否只是错过了某个地方,这是 Crystal .NET API 的一个已知问题?

We are printing our Crystal Reports via the Crystal .NET API PrintToPrinter method. Recently it was discovered that when printing Cross Tab reports (reports that span multiple pages horizontally), only the first page is printed and the other "virtual" pages are not. We can preview the Reports fine in the .NET Crystal Report Viewer control and they show the wide report we expect, but when we print using the PrintToPrinter() method the output is definitely not what we just saw in that preview. Only the first page prints and you can see the beginning of what should be the second page cut off.

When printing through the Crystal Designer, the other pages are printed as expected. Also of note is that when we print via the "Print" button on the .NET Crystal Report Viewer control, it also prints all of the expected pages (they're jut not paged as well as when printing through the Crystal Designer).

Only the PrintToPrinter method (both overrides) seems to print only the first page of the Cross Tab Report.

I'm wondering if there's just setting I need to be setting programmatically to make this work or if I have just missed somewhere out there that this is a known issue with the Crystal .NET API?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文