Click to See Complete Forum and Search --> : Supressing Subreports in Crystal Reports in VB.Net


RitamDhara
March 21st, 2004, 05:30 AM
I need to suppress the subreports which
are generated and added to the
CrystalReportViewer when a Group is clicked.

Thanks in adv.
Regards
Ritam Dhara

malleyo
April 7th, 2004, 05:52 PM
This is based on CR 8.5...

Put this code into VB (I would assume that it would go under CRViewer_DrillOnGroup, but I'm not sure):

Report.subReport.Suppress = True

In order for it to work, 'subReport' needs to be the name you gave the subreport in the designers Properties (it defaults to Subreport1)