SAP Knowledge Base Article - Public

1621615 - Crystal Report page header/footer are not shown in .NET web application when setting SeparatePages to false

Symptom

  • Crystal Report page header/footers not being displayed for each page.
  • The first page header and last page footer are displayed, but no others in between.

Environment

  • Visual Studio 2005, 2008 or 2010
  • Crystal Reports XI R2
  • or, Crystal Reports 2008
  • or, Crystal Reports for Visual Studio 2010

Reproducing the Issue

  • Set the CrystalReportViewer.SeparatePages to false in code, or in the html page.
CrystalReportViewer.SeparatePages = false;

or

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" SeparatePages="False" /> 

Cause

  • This behaviour is by design. The SeparatePages feature prevents unique pages from being created, thus there is no place to add a page header or footer.

Resolution

  • Don't use the SeparatePages feature if you require Page Headers/Footers to be shown in your report.
  • Or, export the report to a format like Adobe PDF or Microsoft Word, then display the exported file in the browser.

Keywords

KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports 10.0 ; SAP Crystal Reports XI ; SAP Crystal Reports XI R2 ; SAP Crystal Reports, developer version for Microsoft Visual Studio ; SAP Crystal Reports, version for Visual Studio .NET 2005 ; SAP Crystal Reports, version for Visual Studio .NET 2008