如何在“组树”面板中显示Crystal Viewer已折叠

时间:2013-08-15 06:07:16

标签: crystal-reports crystal-reports-2010

默认情况下,即使未使用,Web窗体上的Crystal Viewer也会显示其“组树”面板已展开。我希望查看器在默认情况下折叠“组树”面板时显示。我可以这样做吗?

2 个答案:

答案 0 :(得分:0)

您可能会对此链接感兴趣

http://www.codeproject.com/Tips/207643/Hide-Report-Group-Tree-in-WPF

或者您可以使用以下内容完全隐藏它:

[Visual Basic]

CrystalReportViewer1.DisplayGroupTree() = True

<强> [C#]

crystalReportViewer1.DisplayGroupTree = true;

<强> [C ++]

crystalReportViewer1->DisplayGroupTree = true;

<强> [VJ#]

crystalReportViewer1.set_DisplayGroupTree(true);

答案 1 :(得分:0)

使用Jquery:

$(document).ready(function() {
     $("[id$=panelHeader_close]").click();
  });