我如何更新它 (CrystalDecisions.Windows.Forms.CrystalReportViewer)?
How do I bring this up to date (CrystalDecisions.Windows.Forms.CrystalReportViewer)?
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 |
+----------+---------+----------------------------------------------------------------------+-------------------------------------+------+-------------------+
我花了几个小时在谷歌上搜索这个,很多帖子都说的正是我所知道的,它已经过时了。
回答来自
https://answers.sap.com/questions/4570064/displaygrouptree-property-is-obsolete---crystalrep.html
I'm assuming you're using Crystal Reports 2008 on Visual Studio 2008, and not Crystal Reports Basic that comes with Visual Studio 2008. For the former, the DisplayGroupTree is obsoleted, but not for the latter.
Crystal Reports 2008 has a new Parameter Panel, so the left-hand pane can contain either the Parameter Panel or the Group Tree Panel. Since it's no longer a binary choice, the DisplayGroupTree was obsoleted.
Set the property ToolPanelView
to either None
(or null
), ToolPanelViewType.GroupTree
or ToolPanelViewType.ParameterPanel
.
CrystalDecisions.Windows.Forms.CrystalReportViewer viewer;
viewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
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 |
+----------+---------+----------------------------------------------------------------------+-------------------------------------+------+-------------------+
我花了几个小时在谷歌上搜索这个,很多帖子都说的正是我所知道的,它已经过时了。
回答来自 https://answers.sap.com/questions/4570064/displaygrouptree-property-is-obsolete---crystalrep.html
I'm assuming you're using Crystal Reports 2008 on Visual Studio 2008, and not Crystal Reports Basic that comes with Visual Studio 2008. For the former, the DisplayGroupTree is obsoleted, but not for the latter.
Crystal Reports 2008 has a new Parameter Panel, so the left-hand pane can contain either the Parameter Panel or the Group Tree Panel. Since it's no longer a binary choice, the DisplayGroupTree was obsoleted.
Set the propertyToolPanelView
to eitherNone
(ornull
),ToolPanelViewType.GroupTree
orToolPanelViewType.ParameterPanel
.
CrystalDecisions.Windows.Forms.CrystalReportViewer viewer;
viewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;