We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to cast the loaded document in the WPF web browser to Aspose.Words.Document?

Hi,

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,

Bilal Nazer.

Thanks In Advance.

Hi

<?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");

Best regards.

Thanks Alexy.