Crystal Report basics

Top sections of CR    

  • Report Header
  • Page Header
  • Details
  • Report Footer
  • Page Footer
  • Additional Report Sections
  • Group Header
  • Group Footer  

Report Header 
Objects placed in the Report Header section print once, at the beginning of the report.

The Report Header section generally contains the report title and other information you want to appear only at the beginning of the report.
  • Charts and cross-tabs placed in this section contain data for the entire report.
  • Formulas placed in this section are evaluated once, at the beginning of the report.
Page Header
Objects placed in the Page Header section print at the beginning of each new page. The Page Header section generally contains information that you want to appear at the top of each page. This can include text fields such as chapter names, document name, or other similar information. This section can also be used to contain field titles, which will then display as labels above the columns of field data in the report.
  • Charts or cross-tabs cannot be placed in this section.
  • Formulas placed in this section are evaluated once per page, at the beginning of each new page.

Details
Objects placed in the Details section print with each new record. The Details section contains data for the body of the report. The bulk of the report data usually appears in this section. When the report is run, the Details section is re-printed for each record. For example, if you add a database object to the Details section, and this database object contains 100 records, then the report will print 100 individual detail sections at runtime.

  • Charts or cross-tabs cannot be placed in this section.
  • Formulas placed in this section are evaluated once for each record.   
Report Footer 
Objects placed in the Report Footer section print once at the end of the report. This section is used to contain information you want to appear only once at the end of the report, such as grand totals.

  • Charts and cross-tabs placed in this section contain data for the entire report.
  • Formulas placed in this section are evaluated once, at the end of the report. 
  • Page Footer   
    Objects placed in the Page Footer section print at the bottom of each page.

    This section usually contains the page number and any other information you want to appear at the bottom of each page.
       
    • Charts and cross-tabs cannot be placed in this section.
    • Formulas placed in this section are evaluated once per page, at the end of each new page.

    Additional Report Sections    
    If a group, summary, or subtotal is added to the report, the program creates two additional sections: the Group Header and the Group Footer.  
     
    Group Header  
    Objects placed in the Group Header section print at the beginning of each new group.

    This section typically holds the group name field, and it can also be used to display charts or cross-tabs that include data specific to the group. The Group Header section is printed once at the beginning of each group.
    • Charts and cross-tabs placed in this section contain data just for the group.
    • Formulas placed in this section are evaluated once for each group, at the beginning of the group.    

    Group Footer  
    Objects placed in the Group Footer section print at the end of each group. This section generally holds the summary value, if any, and can be used to display charts or cross-tabs. The Group Footer section is printed once at the end of each group.
    • Charts and cross-tabs placed in this section contain data just for the group.
    • Formulas placed in this section are evaluated once for each group, at the end of the group.   

    Report Experts
    • Standard
    • Form Letter
    • Form
    • Cross-Tab
    • Subreport
    • Mail Label
    • Drill Down

    Report Processing Model
    Crystal Reports uses a three-pass reporting method to generate reports. A pass is a process that Crystal Reports uses each time the data is read and manipulated.