Andrew,
You could save it in a string, but it would require some translation.
Basically, you can read the byte stream, and then convert that to a unicode
string (might have to pad an extra empty byte in there). What is in the
string won't be pretty, and will look pretty much the same as if you opened
it up in notepad.
Now, if you need this string to be in something that can be embedded in
XML, or an email, or something of that nature, where the character set is
restrained, you are better off reading the byte stream and then converting
to base 64 (use the ToBase64String method on the Convert class).
Finally, if you are using the most recent version of office (2003), it
will save your documents in an XML format, if you wish, which is already a
string.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Andrew Inwards said:
Is it possible to save a MS Word document in a string? I suspect not
because
Ive tried saving it in using various encoding formats and it always gets
corrupted.
Thanks
Andrew