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. .NET (Core and Framework)
  4. How to process each word in a microsoft word document

How to process each word in a microsoft word document

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorialcsharphelpquestion
3 Posts 3 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.
  • U Offline
    U Offline
    User 3820232
    wrote on last edited by
    #1

    Hi, is it possible to process each individual word in a microsoft word document from VB.NET. For example, if i have a phrase say 'HE IS A BOY', is it possible for VB.NET to identify each single word?? can anyone help?? Thanks in advance Regards Nitin

    S P 2 Replies Last reply
    0
    • U User 3820232

      Hi, is it possible to process each individual word in a microsoft word document from VB.NET. For example, if i have a phrase say 'HE IS A BOY', is it possible for VB.NET to identify each single word?? can anyone help?? Thanks in advance Regards Nitin

      S Offline
      S Offline
      sxbluebird
      wrote on last edited by
      #2

      I known 2 ways. 1 is regex 2 is use string.split(' ') splite the phrase to a string[]. wang

      1 Reply Last reply
      0
      • U User 3820232

        Hi, is it possible to process each individual word in a microsoft word document from VB.NET. For example, if i have a phrase say 'HE IS A BOY', is it possible for VB.NET to identify each single word?? can anyone help?? Thanks in advance Regards Nitin

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        I assume that you mean that you want to get the text out of Word and manipulate it in some way. There is a way that doesn't involve using Microsoft Word at all, and relies instead on something called an IFilter. Basically, an IFilter is the mechanism by which the Search mechanism in Windows works, and allows you to get information out of sources such as Excel, Word, Adobe Acrobat, etc. What you need to do is read in the document using the appropriate IFilter and then parse it to extract the words. Here's a link to a C# version that shows what you need to do. http://www.codeproject.com/csharp/IFilter.asp[^]

        the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
        Deja View - the feeling that you've seen this post before.

        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