Is there a way to load .doc from my harddrive without all the MS Word Markups?

  •  01-13-2010, 10:21 AM

    Is there a way to load .doc from my harddrive without all the MS Word Markups?

    I 've am trying to load Word documents or MS Word created RTF's, but for both instances when I load it into the editor from my hard drive(not cut and past), I get a bunch of mark up leftover created from MSWord, thus a bunch of garbage strings and characters that I do not want.
     
    For RTF's, I have been using the LoadRTF function.  If I load an RTF file with almost nothing in it(one sentence), I get a bunch of garbled squares and other stuff.  If I create the same RTF file using WordPad, then it works flawlessly and as intended.
     
    For .doc , I have been using LoadFile function.  I tried using LoadWord, but it throws an exception when I use Editor1.LoadWord("doc.doc");
     
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. 
     
     
     
    Is there a way to load MS Word created documents programmatically with the document cleaned up?
View Complete Thread