GrapeCity ActiveReports for .NET 12.0J
Add メソッド (SectionCollection)
使用例 

コレクションに新しいセクションを追加します。
オーバーロード一覧
オーバーロード解説
Add(SectionType,String)指定した名前でコレクションに新しいセクションを追加します。  
Add(Section)SectionCollectionに指定されたセクションを追加します。  
解説

レポートのレイアウトを変更するときに、変更対象がヘッダとフッタのペアである場合は、Insertメソッドの方が使い方が簡単です。

使用例
GrapeCity.ActiveReports.SectionReport rpt = new GrapeCity.ActiveReports.SectionReport();
    rpt.Sections.Add(GrapeCity.ActiveReports.Document.Section.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;
Dim rpt As New GrapeCity.ActiveReports.SectionReport
    rpt.Sections.Add(GrapeCity.ActiveReports.Document.Section.SectionType.Detail, "Detail1")
    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
参照

関連項目

SectionCollection クラス
SectionCollection メンバ
SectionType 列挙型

 

 


Copyright © 2003 GrapeCity inc. All rights reserved.