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

Last post 01-14-2010, 10:10 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  01-13-2010, 10:21 AM 58145

    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?
  •  01-14-2010, 10:10 AM 58165 in reply to 58145

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

    No, LoadWord method is not implemented yet. Right now you can load a RTF file but not a MS Word file. We plan to finish it in the future version. Sorry for the inconvenience.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML