ReportViewer - Hide PDF Export

前端 未结 18 1687
暖寄归人
暖寄归人 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条回答
  •  旧时难觅i
    2020-12-13 11:12

    This simple jQuery approach worked for me:

     $(document).ready(function () {
         $("a[title='PDF']").parent().hide();  // Remove from export dropdown.
         $("a[title='MHTML (web archive)']").parent().hide();  
         $("a[title='TIFF file']").parent().hide();  
     });
    

提交回复
热议问题