The below code allows me to control whether the "group tree" button appears when viewing a report.
Set mCrystalReport = mCrystalApplication.OpenReport (pRpt.ReportFileName & ".rpt", crOpenReportByTempCopy)
With mCrystalReport
--
If Report = "RSM6000" Then
.PrintWindowOptions.HasGroupTree = False
Else
.PrintWindowOptions.HasGroupTree = True
End If
--
If Report = "RSM6000" Then
.Options.HasGroupTree = False
Else
.Options.HasGroupTree = True
End If
--
End With
If I set "HasGroupTree = True" then the button shows AND the group tree shows.
I would like be able to show the button but not the tree itself. Then allow the user to click the button if he/she wants to see the tree. Is there a way to do this ?
It's Crystal 7.0.
Thanks
Set mCrystalReport = mCrystalApplication.OpenReport (pRpt.ReportFileName & ".rpt", crOpenReportByTempCopy)
With mCrystalReport
--
If Report = "RSM6000" Then
.PrintWindowOptions.HasGroupTree = False
Else
.PrintWindowOptions.HasGroupTree = True
End If
--
If Report = "RSM6000" Then
.Options.HasGroupTree = False
Else
.Options.HasGroupTree = True
End If
--
End With
If I set "HasGroupTree = True" then the button shows AND the group tree shows.
I would like be able to show the button but not the tree itself. Then allow the user to click the button if he/she wants to see the tree. Is there a way to do this ?
It's Crystal 7.0.
Thanks