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. Reading Content Of Doc Files

Reading Content Of Doc Files

Scheduled Pinned Locked Moved C#
questiontutorial
5 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.
  • L Offline
    L Offline
    Laji59
    wrote on last edited by
    #1

    I have some Doc files that I need to read content of each of them and write them into a for example textBox or richTextBox. How can I do it ? Thanks in advace

    Hello Friends

    C H 2 Replies Last reply
    0
    • L Laji59

      I have some Doc files that I need to read content of each of them and write them into a for example textBox or richTextBox. How can I do it ? Thanks in advace

      Hello Friends

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Google broken where you live ? You need Word installed and you need to control Word through C#, there's a Microsoft Office Toolkot or something for doing that.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • L Laji59

        I have some Doc files that I need to read content of each of them and write them into a for example textBox or richTextBox. How can I do it ? Thanks in advace

        Hello Friends

        H Offline
        H Offline
        hotthoughtguy
        wrote on last edited by
        #3

        salam i think u have to use a openfiledialog, select the file and do like this myrichtextbox.Loadfile(myopenfiledialog.selectedfile,RichTextBoxStreamType.RichText) i think this ll solve ur problem

        C L 2 Replies Last reply
        0
        • H hotthoughtguy

          salam i think u have to use a openfiledialog, select the file and do like this myrichtextbox.Loadfile(myopenfiledialog.selectedfile,RichTextBoxStreamType.RichText) i think this ll solve ur problem

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          This is totally, utterly incorrect. An rtf and a doc are two different things.

          Christian Graus Driven to the arms of OSX by Vista.

          1 Reply Last reply
          0
          • H hotthoughtguy

            salam i think u have to use a openfiledialog, select the file and do like this myrichtextbox.Loadfile(myopenfiledialog.selectedfile,RichTextBoxStreamType.RichText) i think this ll solve ur problem

            L Offline
            L Offline
            Laji59
            wrote on last edited by
            #5

            It didn`t solve my problem RTF and DOC are tow different type

            Hello Friends

            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