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 16-Oct-11 23:46pm
Edited 17-Oct-11 2: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 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  
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  

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

  Print Answers RSS
0 OriginalGriff 534
1 Gihan Liyanage 298
2 RyanDev 270
3 Sergey Alexandrovich Kryukov 223
4 Richard Deeming 185
0 Sergey Alexandrovich Kryukov 8,906
1 OriginalGriff 7,771
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 16 Jul 2014
Copyright © CodeProject, 1999-2014
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