Results 1 to 2 of 2

Thread: word file raw data from word document object?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2004
    Posts
    362

    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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width