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 / C++ / MFC
  4. Extracing data from word document to notepad or edit box

Extracing data from word document to notepad or edit box

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
4 Posts 4 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.
  • A Offline
    A Offline
    Ankush Mehta
    wrote on last edited by
    #1

    Hi, I am trying to extract data from word document to an edit box or notepad. I tried doing it usingIDispatch interfaces. i used other methods also. But the main problem is that i get certain meaningless characters in edit box after extraction.Perhaps this is due to the formatting characters in doc format. How can i get data from doc to notepad? I am using VC++ 6.0. Thanks in anticipation, Ankush Mehta Ankush Mehta

    R B G 3 Replies Last reply
    0
    • A Ankush Mehta

      Hi, I am trying to extract data from word document to an edit box or notepad. I tried doing it usingIDispatch interfaces. i used other methods also. But the main problem is that i get certain meaningless characters in edit box after extraction.Perhaps this is due to the formatting characters in doc format. How can i get data from doc to notepad? I am using VC++ 6.0. Thanks in anticipation, Ankush Mehta Ankush Mehta

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

      Ankush Mehta wrote:

      certain meaningless characters in edit box after extraction

      If you are talking about small squares, maybe you should replace all "\n\r" by "\r\n" in the strings you are exporting. ~RaGE();

      1 Reply Last reply
      0
      • A Ankush Mehta

        Hi, I am trying to extract data from word document to an edit box or notepad. I tried doing it usingIDispatch interfaces. i used other methods also. But the main problem is that i get certain meaningless characters in edit box after extraction.Perhaps this is due to the formatting characters in doc format. How can i get data from doc to notepad? I am using VC++ 6.0. Thanks in anticipation, Ankush Mehta Ankush Mehta

        B Offline
        B Offline
        Barm
        wrote on last edited by
        #3

        I suggest you use MS Word automation to extract the content of the doc file before writing the information to an edit box or notepad. http://msdn.microsoft.com/office/understanding/word/default.aspx[^] Thomas

        1 Reply Last reply
        0
        • A Ankush Mehta

          Hi, I am trying to extract data from word document to an edit box or notepad. I tried doing it usingIDispatch interfaces. i used other methods also. But the main problem is that i get certain meaningless characters in edit box after extraction.Perhaps this is due to the formatting characters in doc format. How can i get data from doc to notepad? I am using VC++ 6.0. Thanks in anticipation, Ankush Mehta Ankush Mehta

          G Offline
          G Offline
          grigsoft
          wrote on last edited by
          #4

          Please note that using any automation method will require Word installed on end-user PC. If this is not acceptable, I could suggest using some third party text extraction tools, such as wordcnv.com Igor Green http://www.grigsoft.com/ - files and folders comparison tools

          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