Click here to Skip to main content
15,885,143 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear sir,

I m working on crystal report and design it at runtime.

at that tim the error will raising...
Error is page header plus page footer is too large for the page
please give me a solution????
by mohan
Posted
Updated 17-Oct-11 2:05am
v2
Comments
Tejas Vaishnav 17-Oct-11 8:05am    
please provide some code from where that error will raise..

Google[^] it.

Either shrink header/footer to fit in page size or select page size which can fit the data with header and footer from printer setting.
 
Share this answer
 
I've had a report that worked just fine on most machines, then one user had this error. Turns out that user's computer's default printer was setup to default to Landscape orientation. For some reason Crystal Reports uses default printer settings when configuring to display or export to pdf a report. It's a known bug. Basically make sure your default printer is setup to Portrait orientation and doesn't have a funky paper size. Then try it again.

Here is the link that helped me:
http://stackoverflow.com/questions/12098164/what-causes-the-page-header-plus-page-footer-is-too-large-for-the-page-error-i[^]
 
Share this answer
 
Open your report using crystal report. Then go to printer setup and check No printer.
 
Share this answer
 
Add the following lines in your code.
VB
Dim rpt As New rptReportFileName
rpt.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4
rpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Portrait

You may need to add the following reference to your project.

CrystalDecisions.Shared

It works for me.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900