IHTMLTxtRange.execCommand ("Copy", false, null) fails due to IE settings

We have a .Net application that is used to edit / render custom HTML documents. It is hosted in IE using the AxSHDocVw.AxWebBrowser controls. First, we go to the "about: blank" page, then we change the document by entering our custom values ​​into it. The problem we are facing is calling IHTMLTxtRange.execCommand ("Copy", "false", "No") if we did not enable IE security settings in the Internet security zone ("Scripts-> Allow access to software in clipboard" ).

To get around the security setting, I tried to first specify the local html file during navigation. But this fails as soon as I modify the document.

I want to use the IHTMLTxtRange.execCommand command (Copy, False, No) so that I can configure Copy / Paste operations. Is there any other way I can do this. Share your ideas to overcome this situation. Thank you Sriram

+3
source share
2 answers

IInternetSecurityManager -, URLACTION_SCRIPT_PASTE ProcessUrlAction. , IE, webbrowser URL- URLACTION_SCRIPT_PASTE.

+1

, . /, , , .

, /- .

0

Source: https://habr.com/ru/post/1740785/


All Articles