Crystal Report 2008中的 DisplayGroupTree属性过时的问题

我从水晶报表10 升级到2008时,左边的组树形菜单的属性 DisplayGroupTree 变得不可用了,在网上找到文章,

发现可以设置 ToolPanelView 属性值为None来搞定。

在此记录一下:

https://forums.sdn.sap.com/thread.jspa?threadID=999037&tstart=0

 

 

问题:

DisplayGroupTree() property is obsolete - CrystalReportViewer in VS 2008  
Posted: Aug 8, 2008 6:21 PM

 
    
Hello,

It appears that the DisplayGroupTree() property in the CrystalReportViewer is now obsolete and doesn't work in VS 2008. Previously to 2008, this property would allow you to show or hide the Group Tree area when a report was rendered in the viewer at runtime.

When I ported my solution to VS 2008, this property doesn't work anymore and the Group Tree is displayed every time. I looked for other properties in on the CrystalReportViewer object and nothing looks like it shows/hides the Group Tree.

Does anybody know how to hide the Group Tree area in the CrystalReportViewer in VS 2008?

Thanks.

 

 

回答:

 

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.

Sincerely,

Ted Ueda
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值