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. Web Development
  3. ASP.NET
  4. Microsoft.Office.Interop.Word

Microsoft.Office.Interop.Word

Scheduled Pinned Locked Moved ASP.NET
comcsharpalgorithmstutorial
2 Posts 1 Posters 1 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.
  • R Offline
    R Offline
    Ramkumar_S
    wrote on last edited by
    #1

    Hi All, I am using below method to find the text in the word document and replace. word.Selection.Find.Execute(ref findText, ref matchCase, ref matchWholeWord, ref matchWildCards, ref matchSoundsLike, ref nmatchAllWordForms, ref forward, ref wrap, ref format, ref replaceWithtext, ref replace, ref matchkasdia, ref matchDiacrities, ref matchAlefHamza, ref matchcontrol); However we had a new requirement like searching the text which starts with # and end with # eg: #name# -- it will be in the word document In c# we need to get the value "name" How to achieve this.Please Advice. Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

    R 1 Reply Last reply
    0
    • R Ramkumar_S

      Hi All, I am using below method to find the text in the word document and replace. word.Selection.Find.Execute(ref findText, ref matchCase, ref matchWholeWord, ref matchWildCards, ref matchSoundsLike, ref nmatchAllWordForms, ref forward, ref wrap, ref format, ref replaceWithtext, ref replace, ref matchkasdia, ref matchDiacrities, ref matchAlefHamza, ref matchcontrol); However we had a new requirement like searching the text which starts with # and end with # eg: #name# -- it will be in the word document In c# we need to get the value "name" How to achieve this.Please Advice. Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

      R Offline
      R Offline
      Ramkumar_S
      wrote on last edited by
      #2

      I found my answer http://stackoverflow.com/questions/2989194/select-range-by-string Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com

      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