I have been searched and read many forum posts on hiding subreports. The problem I am having is that all I see is the following code snippet:
private void subReport1_ItemDataBound(object sender, EventArgs e)
{
Processing.SubReport subReport = (Processing.SubReport)sender;
Processing.Report detailReport = (Processing.Report)subReport.InnerReport;
Processing.Report mainReport = (Processing.Report)subReport.Report;
mainReport.Visible = detailReport._filteredCount > 0;
}
I am assuming I put this code in the subreport cs file. However, when I add it, visual studio gives me "The type or namespace 'Processing' could not be found" error. Could someone please give me a more complete example (e.g. Do I need to add a using, and if so which one? Do I need to add a reference, and if so which one? Do I need to add event handlers?)?
Thanks in advance for your help.
private void subReport1_ItemDataBound(object sender, EventArgs e)
{
Processing.SubReport subReport = (Processing.SubReport)sender;
Processing.Report detailReport = (Processing.Report)subReport.InnerReport;
Processing.Report mainReport = (Processing.Report)subReport.Report;
mainReport.Visible = detailReport._filteredCount > 0;
}
I am assuming I put this code in the subreport cs file. However, when I add it, visual studio gives me "The type or namespace 'Processing' could not be found" error. Could someone please give me a more complete example (e.g. Do I need to add a using, and if so which one? Do I need to add a reference, and if so which one? Do I need to add event handlers?)?
Thanks in advance for your help.