I want my RDLC report report to Allow export only Excel Reports. I found this code on internet. Unfortunately. It hides only PDF not the WORD can anyone help me?
According to your description , I have made a sample here.You can achieve your requirement by editing OnPreRender Event .Here is the code ,I hope it will help you.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
39 Points
96 Posts
How to allow Export to Excel only in RDLC ?? (NO Word/PDF)
Dec 10, 2018 09:04 AM|jalali|LINK
Hi Friends,
I want my RDLC report report to Allow export only Excel Reports. I found this code on internet. Unfortunately. It hides only PDF not the WORD can anyone help me?
Star
9831 Points
3120 Posts
Re: How to allow Export to Excel only in RDLC ?? (NO Word/PDF)
Dec 11, 2018 05:20 AM|Brando ZWZ|LINK
Hi jalali
According to your description , I have made a sample here.You can achieve your requirement by editing OnPreRender Event .Here is the code ,I hope it will help you.
Test.aspx:
Code-behind:
Result:
Best Regards,
Brando
Member
39 Points
96 Posts
Re: How to allow Export to Excel only in RDLC ?? (NO Word/PDF)
Dec 11, 2018 01:24 PM|jalali|LINK
Work like a charm!! Thanks!!