Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Word doc in Web Browser Control

Word doc in Web Browser Control

Scheduled Pinned Locked Moved C#
csharptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mirano
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • M mirano

      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.

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Hi I have seen the similar problem in my application too. If anyone knows, please let us know. TIA.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups