Last post Jul 19, 2013 07:11 PM by Neodynamic
Jul 19, 2013 05:11 AM|Nghianx1987|LINK
I am using Report Viewer 10.0.0.0 to view the report in Sql Reporting Service 2008R2.
I want to disable a export(ex:Excel,PDF) of ReportViewer in code behind.
I try some code for Report Viewer 22.214.171.124 like that :
var info = extension.GetType().GetField("m_serverExtension", BindingFlags.NonPublic | BindingFlags.Instance);
if (info != null)
var rsExtension = info.GetValue(extension) as OldVer::Microsoft.SqlServer.ReportingServices2005.Execution.Extension;
if (rsExtension != null)
rsExtension.Visible = false;
But seem it does work with Report Viewer 10.0.0.0.
Can you please help me a solution to disable a export in Report Viewer 10.0.0.0 ?
Thank you very much.
Jul 19, 2013 07:11 PM|Neodynamic|LINK