【问题标题】:Clear WPF report viewer in ActiveReports在 ActiveReports 中清除 WPF 报表查看器
【发布时间】:2021-11-15 22:31:00
【问题描述】:

我想知道如何在 ActiveReports 中清除 WPF 报表查看器。所有文章都建议我将 null 分配给 Document 属性,但不存在此类属性。 LoadDocument 方法将报表加载到查看器中,但它不采用 null 作为参数。我认为传递 null 会清除报告。

【问题讨论】:

    标签: wpf activereports grapecity


    【解决方案1】:

    您可以使用LoadDocument 方法和一个空文档来清除 WPF 查看器:

    ReportViewer.LoadDocument(new GrapeCity.ActiveReports.Document.SectionDocument());
    

    【讨论】:

    • 我最终这样做了,只是忘记将其发布为答案。不错!
    猜你喜欢
    • 2014-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-20
    • 2023-03-16
    • 1970-01-01
    相关资源
    最近更新 更多