A
Adrian Johnson, CA
I'd like to use MS Word as a text editor and store the data as a byte[]
within a name in Excel. I'd like to embed a Word document in an Excel file
so the user can create rich 'how-to' documentation which gets transported
with the workbook.
Document's SaveAs and Open methods require a filename to be passed in, and a
Document object is not serializable.
To save the file, I could save the Document as a temporary file as an
intermediary, and then open up that file as a FileStream which I could then
convert to a byte array. However, creating the FileStream doesn't work if
the Document is still open in Word as it is being used by another process.
Outlook seems to be able to use Word as a text editor for composing email
messages, I'd like to do something similar.
Any ideas? I'm using C# in VS 2008 Professional, and Office 2003. Thanks.
within a name in Excel. I'd like to embed a Word document in an Excel file
so the user can create rich 'how-to' documentation which gets transported
with the workbook.
Document's SaveAs and Open methods require a filename to be passed in, and a
Document object is not serializable.
To save the file, I could save the Document as a temporary file as an
intermediary, and then open up that file as a FileStream which I could then
convert to a byte array. However, creating the FileStream doesn't work if
the Document is still open in Word as it is being used by another process.
Outlook seems to be able to use Word as a text editor for composing email
messages, I'd like to do something similar.
Any ideas? I'm using C# in VS 2008 Professional, and Office 2003. Thanks.