word file raw data from word document object?
is there a way to get the raw data of a word file document object?
word = new Word.Application();
doc = new Word.Document();
now, I open the word file, do some replace. save the file.
I could open the file as raw binary file. but I'm thinking maybe there is a property that can get the raw the data? which property?
thanks
Re: word file raw data from word document object?
The whole point of the Word DOM is the O, i.e. you get objects rather having to work with raw data. If you want raw Bytes then using a FileStream would be the way to go, as for any other file type. If you're working with DOCX files then you might find the OoenXML SDK a better option than Office Interop. Without a clear idea of what you're trying to achieve, it's hard be more specific.