See Also

SectionCollection Class  | SectionCollection Members  | PageHeader  | PageFooter  | Section

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

InsertPageHF Method

Inserts a page header and a matching page footer into the SectionCollection.

[Visual Basic]
Public Sub InsertPageHF()
[C#]
public void InsertPageHF();

Remarks

Only one PageHeader and one PageFooter section are allowed in a report layout.

Example

[C#] 

Private void button2_Click(object sender, System.EventArgs e) 

    DataDynamics.ActiveReports.ActiveReport rpt = New DataDynamics.ActiveReports.ActiveReport(); 
    rpt.Sections.Add(DataDynamics.ActiveReports.SectionType.Detail,"Detail"); 
    rpt.Sections.InsertPageHF(); 
    rpt.Sections[0].BackColor = System.Drawing.Color.DarkOrchid; 
    rpt.Sections[1].BackColor = System.Drawing.Color.Orchid; 
    rpt.Sections[2].BackColor = System.Drawing.Color.DarkOrchid; 
    rpt.Run(); 
    this.arv.Document = rpt.Document; 
}

[Visual Basic] 

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim rpt As New DataDynamics.ActiveReports.ActiveReport
    rpt.Sections.Add(DataDynamics.ActiveReports.SectionType.Detail, "Detail")
    rpt.Sections.InsertPageHF()
    rpt.Sections(0).BackColor = System.Drawing.Color.DarkOrchid
    rpt.Sections(1).BackColor = System.Drawing.Color.Orchid
    rpt.Sections(2).BackColor = System.Drawing.Color.DarkOrchid
    rpt.Run()
    Me.Viewer1.Document = rpt.Document
End Sub

See Also

SectionCollection Class  | SectionCollection Members  | PageHeader  | PageFooter  | Section

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.