|
-
Feb 12th, 2012, 02:08 AM
#1
Thread Starter
Hyperactive Member
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
-
Feb 12th, 2012, 03:12 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|