Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving Word Doc to MemoryStream Or some other way
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Divers
Thread ID:
01054426
Message ID:
01055186
Vues:
28
Hi Viv, My Goal is :

Do a find and Repalce on a Document, Capture the Changed data, then send the final result back to an ASP classic page. this page will then display the standard Open WinWord application, Save file, etc...

Thanks!

Shawn


>Hi,
>
>The required parameter to Document.Save() is a file name. You could save it to a file (using SaveAs) and read that back in to .NET.
>
>Out of curiosity what do you intend doing with this when you have it in .NET memory?
>
>Regards,
>Viv
>
>>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/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform