I have the requirement that i need to cast the loaded document in the WPF webbrowser to Aspose.Word.Document.
The webbrowser’s “Document” property returns Microsoft.Office.Interop.Word.Document object.How can i cast this object to Aspose.Word.Document.Because once it loaded on the Aspose.Word.Document i need to perform few changes on it.
Thanks In Advance.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for your request. You should save the Microsoft.Office.Interop.Word.Document on disk and then open this document by Aspose.Words, using the following code:
Document doc = new Document(@"C:\Temp\mydoc.doc");