redmondson92
Programmer
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 "create group tree" option in the Report Options). Thanks for any input.
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 "create group tree" option in the Report Options). Thanks for any input.