I had exactly the same problem and solved using the following C# method, found here!:
public void DisableUnwantedExportFormat(ReportViewer ReportViewerID, string strFormatName)
{
FieldInfo info;
foreach (RenderingExtension extension in ReportViewerID.LocalReport.ListRenderingExtensions())
{
if (extension.Name == strFormatName)
{
info = extension.GetType().GetField("m_isVisible", BindingFlags.Instance | BindingFlags.NonPublic);
info.SetValue(extension, false);
}
}
}
and on the page_load:
DisableUnwantedExportFormat(ReportViewer1, "PDF");
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…