Word doc in Web Browser Control
-
I have a web browser control on Win form, using Visual C#. I open a Word document in it using control.Navigate..., everythings works fine. Now I want to get the text that is selected in the control, but nothing works. I try: _web.Focus(); SendKeys.Send("^c"); but nothing is on a clipboard. Also this: _web.ExecWB(SHDocVw.OLECMDID.OLECMDID_COPY, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref refmissing , ref refmissing); but nothing on the clipboard as well. Anybody has the solution on how to get the text that is selected in the web browser control? Thanks.
-
I have a web browser control on Win form, using Visual C#. I open a Word document in it using control.Navigate..., everythings works fine. Now I want to get the text that is selected in the control, but nothing works. I try: _web.Focus(); SendKeys.Send("^c"); but nothing is on a clipboard. Also this: _web.ExecWB(SHDocVw.OLECMDID.OLECMDID_COPY, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref refmissing , ref refmissing); but nothing on the clipboard as well. Anybody has the solution on how to get the text that is selected in the web browser control? Thanks.