Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable the Group tree

Status
Not open for further replies.

janedane

Programmer
Mar 8, 2004
22
IE
Hi All,
CR9.2
Crystal Enterprise
Active X viewer

Does anyone know how to disable the Group tree if there are no groups??

Thanks,
Jane
 
janedane,

Look for these settings in ActiveXViewer.asp.

<PARAM NAME="EnableGroupTree" VALUE=1>
<PARAM NAME="DisplayGroupTree" VALUE=1>

Set these both to zero and that should do it.

ewinters

 
You may be able to adapt this concept to fit your environment. I use VB6 to integrate with Crystal. The way I handle this is to loop through the Report object's Areas collection, looking for Group Headers:
[tt]
Dim blnGroups As Boolean
Dim crxArea As CRAXDRT.Area

'Look for any Groups to determine whether or not to
' show the Group Tree
For Each crxArea In Report.Areas
If crxArea.Kind = 3 Then
blnGroups = True
End If
Next crxArea

Viewer.EnableGroupTree = blnGroups
[/tt]
-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top