Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving Word Doc to MemoryStream Or some other way
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Saving Word Doc to MemoryStream Or some other way
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01054426
Message ID:
01054426
Views:
47
Hi All, sorry it has been a long time since i have helped or posted here, i got a new job using a really old language called unidata ;-)

My Question is this :
I have a DLL i created in VB.NET, that opens word and does a series of find and Replace, after the find and replace i have to save the changes not to the harddrive but to a property of the DLL, i was thinking that i could use memory stream, but i can't get this to work, I get an
error as follows :
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in word_find_replace.dll

Additional information: Type mismatch.
Here is the code :
Dim ms As New System.IO.MemoryStream
...
' code that does the find and replace
...
oDoc.Save(ms)
Thanks!
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Next
Reply
Map
View

Click here to load this message in the networking platform