作成日: 2020/04/15 最終更新日: 2020/04/15
文書種別
使用方法
詳細
空のSectionDocumentオブジェクトをLoadDocumentメソッドで読み込むことで、Viewerコントロールにセットされているレポートをクリアし、レポートが読み込まれていない状態にすることができます。
◆サンプルコード(VB.NET)
◆サンプルコード(C#)
※この方法は、プレビュー中のレポートがページレポート/RDLレポートの場合でも有効です。
※この方法は、Windowsフォーム用とWPFアプリケーション用の両方のViewerコントロールで有効です。
◆サンプルコード(VB.NET)
Private Sub Button1_Click(...) Handles Button1.Click
Me.Viewer1.LoadDocument(New GrapeCity.ActiveReports.Document.SectionDocument)
End Sub
Me.Viewer1.LoadDocument(New GrapeCity.ActiveReports.Document.SectionDocument)
End Sub
◆サンプルコード(C#)
private void button1_Click(object sender, System.EventArgs e)
{
this.viewer1.LoadDocument(new GrapeCity.ActiveReports.Document.SectionDocument());
}
{
this.viewer1.LoadDocument(new GrapeCity.ActiveReports.Document.SectionDocument());
}
※この方法は、プレビュー中のレポートがページレポート/RDLレポートの場合でも有効です。
※この方法は、Windowsフォーム用とWPFアプリケーション用の両方のViewerコントロールで有効です。
旧文書番号
85341