是什么原因导致"页眉多页的页脚是过大的页面和QUOT;在Crystal Reports错误? [英] What causes the "Page Header plus Page Footer is too large for the page" error in Crystal Reports?

查看:528
本文介绍了是什么原因导致"页眉多页的页脚是过大的页面和QUOT;在Crystal Reports错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了下列$ C $下一个打印按钮:

I have used the following code for a print button:

Data.str = null;
//Data.str = textBox24.Text.ToString();
string s = "select * from temp_bond";
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\\Real.mdb";
cn.Open();

DataSet ds = new DataSet();

OleDbDataAdapter da = new OleDbDataAdapter(s, cn);
ds.Clear();
da.Fill(ds);
Bond rpt = new Bond();
rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "BOND_" + Data.str + ".pdf");
System.Diagnostics.Process.Start("BOND_" + Data.str + ".pdf");
//r.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "E:\\rep.pdf");
//crystalReportViewer1.ReportSource = r;
OleDbCommand cm1 = new OleDbCommand("delete * from temp_bond", cn);
cm1.ExecuteNonQuery();
cn.Close();

和我得到一个错误在这code:

and I'm getting an error in this code:

rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "BOND_" + Data.str + ".pdf");

该错误是:

页眉多页的页脚是过大的页面。在文件错误   C:\ DOCUME〜1 \ ADMINI〜1 \ LOCALS〜1 \ TEMP \ temp_3f674868-8e5d-46ce-80eb-dce78bb2ba89   {17674136-B71E-4C6F-9E36-1CEB514B13BF} .RPT:页页眉或页脚   比页长

Page Header plus Page Footer is too large for the page. Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_3f674868-8e5d-46ce-80eb-dce78bb2ba89 {17674136-B71E-4C6F-9E36-1CEB514B13BF}.rpt: Page header or footer longer than a page.

是什么原因,我该如何解决这个问题?

What can cause this and how can I fix it?

推荐答案

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

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.

这篇关于是什么原因导致"页眉多页的页脚是过大的页面和QUOT;在Crystal Reports错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆