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. how to open .doc file using richtextbox..?

how to open .doc file using richtextbox..?

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

    Hi all, I need open .doc file using richtextbox.I use openfileDialog command to open .doc file.The error was "file format is not valid".. I had draw some object in .doc file..Is it the problem because of it..?

    %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

    C P G 3 Replies Last reply
    0
    • K kamalesh5743

      Hi all, I need open .doc file using richtextbox.I use openfileDialog command to open .doc file.The error was "file format is not valid".. I had draw some object in .doc file..Is it the problem because of it..?

      %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

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

      richtextbox cannot open word docs.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • K kamalesh5743

        Hi all, I need open .doc file using richtextbox.I use openfileDialog command to open .doc file.The error was "file format is not valid".. I had draw some object in .doc file..Is it the problem because of it..?

        %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

        P Offline
        P Offline
        phannon86
        wrote on last edited by
        #3

        Are you able to save the doc file as an RTF? I believe richtextbox can handle that.

        He who makes a beast out of himself gets rid of the pain of being a man

        K 1 Reply Last reply
        0
        • K kamalesh5743

          Hi all, I need open .doc file using richtextbox.I use openfileDialog command to open .doc file.The error was "file format is not valid".. I had draw some object in .doc file..Is it the problem because of it..?

          %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          RichTextBox can display rtf files, not doc. There are several controls here on codeproject that allow to display doc files. Search and you'll find them

          Giorgi Dalakishvili #region signature my articles #endregion

          1 Reply Last reply
          0
          • P phannon86

            Are you able to save the doc file as an RTF? I believe richtextbox can handle that.

            He who makes a beast out of himself gets rid of the pain of being a man

            K Offline
            K Offline
            kamalesh5743
            wrote on last edited by
            #5

            Ya i can save .doc file in .rtf format..Nw i can open .rtf file using richtextbox..I drew rectangle using wordpad then save in .rtf format.. Now the problem was, i cant change the rectangle colour inside richtextbox. So how i can change the rectangle colour.?

            %#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG

            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