fangxt12 发表于 2020-6-2 16:04:05

页眉/页脚太大,请增加纸张大小或缩小页眉/页脚的高度

例外の詳細:
GrapeCity.ActiveReports.ReportException: ページヘッダ/ページフッタが大きすぎます。用紙サイズを大きくするか、ページヘッダ/ページフッタの高さを小さくしてください。
   場所 GrapeCity.ActiveReports.Layout.ProcessReport.ProcessPageHeaderFooter(Boolean bAllowGrowth)
   場所 GrapeCity.ActiveReports.Layout.ProcessReport.ProcessPageTillFull()
   場所 GrapeCity.ActiveReports.Layout.ProcessReport.GrapeCity.ActiveReports.Layout.IExecReport.RenderPage(Page newPage, Single left, Single top, Single right, Single bottom, UInt32 flags, UInt32& status)
   場所 GrapeCity.ActiveReports.SectionReport.ProcessPage()
   場所 GrapeCity.ActiveReports.SectionReport.Run(Boolean syncDocument)
   場所 GrapeCity.ActiveReports.SectionReport.Run()
   場所 GrapeCity.ActiveReports.Viewer.Win.Rpx.RpxReport.LoadDocument(SectionDocument document)
   場所 GrapeCity.ActiveReports.Viewer.Win.Rdf.RdfDocumentReportBase.<>c__DisplayClass13.#bzz()
   場所 GrapeCity.ActiveReports.Viewer.Win.AsyncLoader.<>c__DisplayClass7.#cAz(Object param0, DoWorkEventArgs param1)
   場所 System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   場所 System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

这个问题如何解决

fangxt12 发表于 2020-6-2 16:20:10

是因为PageHeader里面放了很多内容的原因吗?

fangxt12 发表于 2020-6-2 16:30:31

fangxt12 发表于 2020-6-2 16:20
是因为PageHeader里面放了很多内容的原因吗?

我把PageHeader调小就不再报错,但是会遮挡住内容,那怎么增加纸张尺寸呢?

KearneyKang 发表于 2020-6-2 18:34:11

这个是报表设计的问题,增加纸张尺寸,你使用的是什么报表。如果是RDL报表:


页面报表:




fangxt12 发表于 2020-6-3 09:43:25

在Visual Studio里创建的SectionReport.vb,这个里面没找到设置纸张大小的属性,在Designer文件里能找到Me.PageSettings.PaperHeight和Me.PageSettings.PaperWidth,不过设置了没作用:L

fangxt12 发表于 2020-6-3 09:45:02

不过我把PageHeader里面的内容缩小了可以运行了。。

KearneyKang 发表于 2020-6-3 14:10:29

好的,问题解决了就好
页: [1]
查看完整版本: 页眉/页脚太大,请增加纸张大小或缩小页眉/页脚的高度