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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difference in in EnableGroupTree and DisplayGroupTree

Status
Not open for further replies.

redmondson92

Programmer
Dec 7, 2001
11
US
I am integrating crviewer.dll and craxdrt.dll (V8.5) into an ActiveX control using VB. I am trying to control the display of the group tree based on report content (ie if it contains groups) when I drill down on a subreport or group.

Generally, i have found the following:

enablegrouptree -- toggles appearance of the group tree button in the toolbar

displaygrouptree -- toggles the appearance of the group window on the left of the window

Does anyone have insight on how these 2 relate to each other??

The problem I am having is that when I close a tab, my group tree stays on even though I am turning it off? Heres my code:

Private Sub CRViewer1_CloseButtonClicked(UseDefault As Boolean)

Dim strCurRpt As String
Dim strCurTabName As String

strCurRpt = CRViewer1.GetViewName(strCurTabName)

'log message
If (mbolLogReport) Then objMessageLog.LogMessage ("Closed tab: " & strCurTabName & " which contains report: " & strCurRpt)

'check tab count and turn it off if only one tab is shown
If CRViewer1.ViewCount <= 2 Then
mbolTabViewable = False
CRViewer1.DisplayTabs = False
End If

'turn off group tree -- need to add check if there is a group or not
CRViewer1.EnableGroupTree = False
CRViewer1.DisplayGroupTree = False
mbolTreeControl = False

'enable default behavior
UseDefault = True
End Sub

Notice that I turn off the enable and display, but when I run this, the group tree stays on? Could the UseDefault be doing it? Or are there report properties that affect it too? (I have turned off the &quot;create group tree&quot; option in the Report Options). Thanks for any input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top