cancel
Showing results for 
Search instead for 
Did you mean: 

Error message "Page header or footer longer than a page"

Former Member
0 Kudos

Hi

Our application call crystal report to generate/display crystal report in PDF format. We have a dev system to test this, all looking good, however when we moved to production server, the attached error message is displayed when running crystal report.

Invoking method GENERATEREPORT returned error Page Header plus Page Footer is too large for the page.

Error in File C:\DOCUME~1\SERV

IC1.LIM\LOCALS1\Temp\temp coq new xxxx.rpt:

Page header or footer longer than a page.

Same report doesnu2019t get this error message if running it from crystal report developer.

Not all crystal reports got this error, but some of reports display strange view in PDF, the content of report are reduced in a paper size like label size, not A4 size. I have checked the default printer on the server, it points to a normal window printer, not a label printer. I have checked all possible settings on production server and compared with dev server, all looks same to me

I suspect the label printing size is used somehow when the report is previewed in pdf format, not normal A4 size although I have selected a normal window printer as a default printer on the window,what else should i check?

Could you please shed some light on this?

Thanks!

Li

Accepted Solutions (1)

Accepted Solutions (1)

former_member709688
Discoverer
0 Kudos

Resolved the issue by logging into the web server as as the application pool service account and set the default printer to the desired one.

Hope this helps someone with the same issue.

Answers (3)

Answers (3)

former_member709688
Discoverer
0 Kudos

Can someone help with his issue. Crystal reports where working fine until there were some label printers installed on the server. Crystal most likely is now using the label printer settings. We need label printers on the server so uninstalling them is not an option.

The default printer still regular printer with standard setting.

Former Member
0 Kudos

I have the same problem in Crystal Reports 2008 sp 3. All headers and footers in subreports are supressed. The mainreport contains header and footer with only a label, so it can't grow. Printing orientation is landscape, no printer option is checked. Report prints over several pages, depending on the selected data it gives the error or not. Saved to pdf as well as printing gives the same error. Can you point me out to solve this issue?

Former Member
0 Kudos

We get this same problem. We have determined it is an issue when exporting our report the PDF when the logo image file size is to big... here is the applicable error message:

Error in File rptGroupList {69F080EE-FF3E-4844-8DD7-90BABFE63D68}.rpt:

Page header or footer longer than a page.

Stack trace: at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.Export(CrReportExportFormatEnum exportFormat, Int32 Reserved)

I'd like to find out why this would happen... is there a way to specify a max display size for the header.

BOb

Former Member
0 Kudos

Exporting to PDF shouldn't affect the page header/footer format but does the report work in production if you just print it straight from the viewer? Are you getting this error when you try to print or export, or during report generation?

In the report itself, are there any report objects in the page header or footer that could grow, expanding to exceed the paper size? What are the page settings?

Fuskie

Who needs more to go on...

Former Member
0 Kudos

do you have subreports, you may just need to set your section to surpress blank section to limit blank space.

i would also surpress any footer or header not needed.

Former Member
0 Kudos

I found the issue is from label printer that is setup on the production server. After I removed the label printer from the server, then error message is gone, all report running fine.

This label printer is not the default window printer, it is a network printer but is configured as a printer using local port on the server.

I think for some reasons, crystal report alway picks up the label printer page size, not the normla page size, I am not sure why and how crystal report do this, it should pick up the default printer, which is a normal printer.

There is no error when I run report within CR. The error happens only when I try to generate crystal report from our application.

I do have logo in page header/footer, subreports in report footer, but I don't think they cause the problem, because I can run same report without any problem in dev system.

Any idea what I should check next?

Thanks