Murali
Murali

Reputation: 1

How to disable Export to Microsoft Excel in the IE browser right click?

Is there any option to disable the Export to Microsoft Excel menu in the IE browser right click.

I tried the web.config method and also changing the system registry using regedit.exe

As i want this menu to be disabled to users who are accessing my application.

Upvotes: 0

Views: 2005

Answers (3)

queen3
queen3

Reputation: 15501

You can probably generate your pages as images so that user can't export or copy. But then you will probably have to disable PrintScreen button so that users can't OCR your text.

Some time ago online book readers fought to prevent users from copying the book text. E.g. they used JavaScript-generated text, and I think stuff like absolutely-positioned letters instead of plain text. But they lost this fight. And you will.

Upvotes: 0

deceze
deceze

Reputation: 522024

"i dont want the user to access my data."

If you don't want the user to access your data, don't put it on a public website. Exporting it to Excel is just a tiny shortcut, copying and pasting can do the same thing. And please don't even start to think about disabling copy and paste.

The golden rule of data on the web: Once it's out there, it's out there.

Upvotes: 2

ahsteele
ahsteele

Reputation: 26504

The ability to Export to Microsoft Excel is a feature of Internet Explorer and is turned on by a registry setting. Therefore, from your web application you will not be able to prevent this behavior in any meaningful way.

Upvotes: 4

Related Questions