ReportViewer - Hide PDF Export

前端 未结 18 1644
暖寄归人
暖寄归人 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 11:06

    In code behind, load a hidden value when showing the report

    this.ReportServViewer.ServerReport.Refresh();
    this.hidReportViewing.Value = "algo";
    

    then use the following javascript to set a timer to check for the export buttons to be rendered. When they are render, remove the button and clear the timer.

    
    

    in the on load add (ie $(document).ready())

    if ($('#hidReportViewing').val() != '')
     {
                   intervalHandler = setInterval(removePDFFromReporting, 1500);
     }
    

提交回复
热议问题