ReportViewer - Hide PDF Export

前端 未结 18 1675
暖寄归人
暖寄归人 2020-12-13 10:40

I make use of a ReportView component in a VB.Net 2005 app. How can I disable the PDF export functionality, only keeping the MS Excel format?

18条回答
  •  鱼传尺愫
    2020-12-13 10:50

    After 4 hours of search I found the solution. I made some little changes to marol's code to be more little:

            Control ReportViewerControl = ReportViewer1.FindControl("Ctl01");
            Control ExportGroupControl = ReportViewerControl.FindControl("Ctl05");
            DropDownList DropDownControl = (DropDownList)ExportGroupControl.FindControl("Ctl00");
            DropDownControl.PreRender += new EventHandler(ddList_PreRender);
    

提交回复
热议问题