I have a form with a ReportViewer control on it. When the form opens the ReportViewer loads and I see the NumberOfProducts from an expression in the RDLC file. In the expression in the RDLC file II use a text box with this expression: "=CountDistinct(Fields!ProductName.Value)" to get the total number of different products found. I'm drawing a blank on how to take that number and use it elsewhere (like a pie chart on the form that the ReportViewer is on). I should only have to derive that value once - so I resist programmatically finding the same value through code elsewhere in the parent form. Have been trying to reference the RDLC file text box value from the parent form but cannot get the syntax right... or even if that is what I should be doing in the first place.
Thank you for your response.
Thank you for your response.