且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是什么原因导致"页眉多页的页脚是过大的页面和QUOT;在Crystal Reports错误?

更新时间:2022-03-25 07:43:56

我有一个已经发布多年,采用水晶报表作为嵌入式文档生成工具的应用程序。附带我的申请报告已经工作了多年,我难倒了一段时间,当我收到收到这个确切的错误消息,谁的用户的技术支持电话。

I have an application that has been published for years and uses Crystal Reports as an embedded document generation tool. The report that is included with my application has been working for years, and I was stumped for a while when I received a support call from a user who had received this exact error message.

在一个钻头头部划伤和研究,我发现主要的罪魁祸首是最终用户计算机上的默认打印机。 如果默认打印机当前配置为打印在不同尺寸的比你生成的报表更小的纸张,水晶报表会给你此错误消息。同时,您将收到此消息,如果打印机被设置在一个方向比你的责任报告的取向不同的打印。

After a bit of head-scratching and research, I've found that the primary culprit is the default printer on the end-users computer. If the default printer is currently configured to print on paper of a different size that is smaller than the report you are generating, Crystal Reports will give you this error message. Also, you will receive this message if the printer is set to print in an orientation different than the orientation of your CR report.

本非常奇怪/设计不良的问题与此错误是,你会收到它,即使你声明的运行时简单地创建一个PDF文件。我认为CR是使用一些默认的打印机设置初始化运行。

The really odd/poorly designed issue with this bug is that you will receive it, even if you declare to the runtime to simply create a PDF. I assume CR is using some of the default printer settings to initialize the runtime.

您有几个选项来解决这个问题。首先,你可以更改默认打印机到另一台设备。您可能必须这样做,如果您的默认打印机是不同的,非典型的外形(如标签打印机。)Crystal Reports将不会像标签打印机,如果标签比你的文件更小。

You have a few options to fix this. First, you can change the default printer to another device. You may have to do this if your default printer is of a different, non-typical form factor (e.g. a label printer.) Crystal Reports will not like the label printer if the labels are smaller than your document.

选择二,当然,重新配置您的打印机驱动程序指定的纸张类型,足够大,以适应您的文档。此外,如前所述,确保纸张打印preference也被设置在正确的方向(横向或纵向)为您的Crystal Reports文档打印预期。

Option two is, of course, to reconfigure your printer driver to specify a paper type that is large enough to fit your document. Also, as mentioned, be sure that the paper printing preference is also set to print in the correct orientation (landscape or portrait) as your Crystal Report document expects.

最后,你可以改变你的默认打印机到另一台打印机,或从电脑中删除打印机。这还不是最有利的答案,但它可能是一个最后的情况下,必要的步骤,得到消息去了。

Last, you can change your default printer to another printer or remove the printer from your PC. This isn't the most favorable answer, but it may be a last-case necessary step to get the message to go away.