Click here to Skip to main content
15,030,067 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I am having pdf file to view in browser but it will not having save as option and print option for that pdf file . So how to disable save as and print option of pdf file in asp.net.
Posted
Updated 25-Jun-14 21:14pm
v2

1 solution

The menu items "Save As…" and "Print…" belong to a browser, not to your Web application; you cannot disable them. Even if you use some trick to disable them in one browser, they will be enabled in other one. Come to think about, if disabling was possible, it would brutally violate some very basic rights of your users. Technically, if some page is rendered on the browser, it is already fully on the client side, so the user can always find a way to use it the way she/he wants.

Anything else? Oh, sure: don't do evil.

—SA
   
v3
Comments
Rameshwary 26-Jun-14 2:30am
   
No I don't want to disable option of browser i want to disable option of pdf file menu option in that also save as and print option is there so i want to disable that option

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