Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# CrystalReports
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 17-Oct-11 0:46am
Edited 17-Oct-11 3:05am
v2
Comments
Tejas_Vaishnav at 17-Oct-11 8:05am
   
please provide some code from where that error will raise..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Add the following lines in your code.
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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Open your report using crystal report. Then go to printer setup and check No printer.
  Permalink  

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

  Print Answers RSS
0 Maciej Los 495
1 Sergey Alexandrovich Kryukov 479
2 OriginalGriff 360
3 Abhinav S 250
4 CHill60 240
0 Sergey Alexandrovich Kryukov 10,102
1 OriginalGriff 9,495
2 Peter Leow 5,241
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,076


Advertise | Privacy | Mobile
Web02 | 2.8.150327.1 | Last Updated 16 Jul 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100