Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

My .Net application will open PDF Report in web browser directly. in that PDF report i want to disable Print, save, Email options.

Note: I am genearting this PDF report from RDLC reporting control.

can any body please help ASAP.
Pasting sample code.

C#
byte[] byteArray = pdfdata;
Response.Clear();
Response.ContentType = "Application/pdf";
Response.BinaryWrite(byteArray);
Response.OutputStream.Close(); 
Posted

1 solution

See this codeproject post Disable PDF Save and Print Button[^]
 
Share this answer
 
Comments
yadlaprasad 29-Jan-14 12:48pm    
Hi Thanks for above link. But no solution mentioned there. everybody struggling with same issue there. Please help
CHill60 30-Jan-14 6:42am    
Essentially you can't do what you want to do in the browser (see Solutions 1 and 5 of that post). Your options are Digital Rights Managment as mentioned in Solution 6 of that post, display it in flash (Solution 5 of that post), secure the PDF (Solution 3). If you did not see these solutions when you followed the link, try refreshing your browser.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900