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

how to default group tree to 'off' in report preview ??

Status
Not open for further replies.

jacktek

Programmer
Sep 12, 2001
16
US
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

 
There are quite a few BizObj KB articles on the different options for using the events of the CRPEAuto stuff, but I didn't see anything that will show the button, but not the tree (until the button is clicked on). It can be done easily with the RDC (at least with 8 and up, never used it with CR 7).

-dave
 
In v8.5, under file, options, layout tab, uncheck the "create group tree" checkbox. I believe this was very much the same in v7.0.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
The "Create Group Tree" button under File / Options is for new reports, I guess, as it has no effect on existing reports.

The 'Create Group Tree' button under File / Report Options does affect an existing report. However, if you uncheck it and save the report, then when you generate the report there's no 'Toggle Group Tree' button when the report is in the preview screen.

So I guess we can't get there from here :^).. Thanks for your help, vidru and dgillz.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top