【问题标题】:How do I bring this up to date (CrystalDecisions.Windows.Forms.CrystalReportViewer)?如何更新此内容 (CrystalDecisions.Windows.Forms.CrystalReportViewer)?
【发布时间】:2020-01-29 18:09:44
【问题描述】:
Me.rpt_Viewer.DisplayGroupTree = False

这会生成一条警告,指出 DisplayGroupTree 已过时

+----------+---------+----------------------------------------------------------------------+-------------------------------------+------+-------------------+
| Severity | Code    | Description                                                          | Project File                        | Line | Suppression State |
+----------+---------+----------------------------------------------------------------------+-------------------------------------+------+-------------------+
| Warning  | BC40008 | 'Public Overloads Property DisplayGroupTree As Boolean' is obsolete. | ProjectName C:\Projects\frm_Main.vb | 116  | Active            |
+----------+---------+----------------------------------------------------------------------+-------------------------------------+------+-------------------+

我花了几个小时在谷歌上搜索这个,很多帖子都说我所知道的,它已经过时了。

【问题讨论】:

    标签: vb.net crystal-reports obsolete


    【解决方案1】:

    答案来自 https://answers.sap.com/questions/4570064/displaygrouptree-property-is-obsolete---crystalrep.html

    我假设您在 Visual Studio 2008 上使用 Crystal Reports 2008,而不是 Visual Studio 2008 附带的 Crystal Reports Basic。对于前者,DisplayGroupTree 已过时,但对于后者则没有。
    Crystal Reports 2008 有一个新的参数面板,因此左侧窗格可以包含参数面板或组树面板。由于它不再是二元选择,因此 DisplayGroupTree 已过时。

    将属性ToolPanelView 设置为None(或null)、ToolPanelViewType.GroupTreeToolPanelViewType.ParameterPanel

    CrystalDecisions.Windows.Forms.CrystalReportViewer viewer;
    viewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
    

    【讨论】:

      猜你喜欢
      • 2015-04-13
      • 2023-03-29
      • 2020-09-23
      • 2021-03-11
      • 2012-08-20
      • 1970-01-01
      • 1970-01-01
      • 2012-05-23
      • 2011-06-12
      相关资源
      最近更新 更多