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. Visual Basic
  4. Getting text from MS Word

Getting text from MS Word

Scheduled Pinned Locked Moved Visual Basic
question
4 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.
  • R Offline
    R Offline
    reegan41
    wrote on last edited by
    #1

    Is it possible to get the text from a Word document (using the Word object library in VB6) and store that text into a string variable? If so, how do you do it?

    L 1 Reply Last reply
    0
    • R reegan41

      Is it possible to get the text from a Word document (using the Word object library in VB6) and store that text into a string variable? If so, how do you do it?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Are you doing this in VB6 or VB.NET? If the latter, this article on DevX may help. Export Customized XML from Microsoft Word with VB.NET

      R 1 Reply Last reply
      0
      • L Lost User

        Are you doing this in VB6 or VB.NET? If the latter, this article on DevX may help. Export Customized XML from Microsoft Word with VB.NET

        R Offline
        R Offline
        reegan41
        wrote on last edited by
        #3

        I'm doing it in VB6 through MS Access.

        L 1 Reply Last reply
        0
        • R reegan41

          I'm doing it in VB6 through MS Access.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          In that case, try this article in Devx: Open, Close, Edit, Find/Replace and Print Word Documents in VB6 After the word document is opened in the WordXChangeCtrl OpenDocument function, the document text is exposed in Doc.Content.Text. (I found this Devx article by searching in Google for "vb6 word document".)

          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