Click here to Skip to main content
11,647,170 members (67,256 online)
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 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 jyo.net 500
1 F-ES Sitecore 360
2 DamithSL 335
3 OriginalGriff 322
4 CPallini 290
0 OriginalGriff 1,277
1 jyo.net 994
2 DamithSL 946
3 Sergey Alexandrovich Kryukov 853
4 CPallini 760


Advertise | Privacy | Mobile
Web02 | 2.8.150804.2 | 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