○ReportStartイベント内でコントロールを動的に追加できるが、その後のイベントで追加すると、問題が発生する
コントロールの表示を変更する
Me.txtDate.Text += “年”
コントロールの色を変える
Me.txtItem.ForeColor = Color.Blue
改ページ制御をする
Me.Detail1.NewPage = NewPage.After
1行ごとに色を変える
Me.Detail1.BackColor = Color.Blue
ページに直接描画をする
Private Sub ProductList_ReportEnd(sender As System.Object, e As System.EventArgs) Handles MyBase.ReportEnd For i As Integer = 0 To Me.Document.Pages.Count - 1 Dim p As GrapeCity.ActiveReports.Document.Section.Page p = Me.Document.Pages(i) ' 描画する領域 Dim rect As New RectangleF(0.5, 0.5, 1, 0.2) ' 描画に必要な設定をしておく p.BackColor = Drawing.Color.Transparent p.PenStyle = GrapeCity.ActiveReports.Document.Section.PenStyles.Solid p.TextAlignment = GrapeCity.ActiveReports.Document.Section.TextAlignment.Center ' ページ数を描画する p.DrawText((i + 1) & "ページ", rect) ' 枠を描画する p.DrawRect(rect) Next End Sub
アンバウンドレポート
次の出力位置へ移動し、同じレコードのままでデータを出力 (C#)this.LayoutAction = GrapeCity.ActiveReports.LayoutAction.LayoutAction.MoveLayout|GrapeCity.ActiveReports.LayoutAction.LayoutAction.PrintSection; (VB.Net)Me.LayoutAction = 3 次の出力位置へ移動し、次のレコードを取得してデータを出力(デフォルト) (C#)this.LayoutAction = GrapeCity.ActiveReports.LayoutAction.LayoutAction.MoveLayout|GrapeCity.ActiveReports.LayoutAction.LayoutAction.NextRecord|GrapeCity.ActiveReports.LayoutAction.LayoutAction.PrintSection; (VB.Net)Me.LayoutAction = 7
アンバウンドフィールド
○任意のレコード数ごとにレポートで空白行を表示させる方法(Access)