----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Devi Message 1 in Discussion Hi members I am creating an instance of a Word Application using the microsoft.Offce.interop.word dll because i have Ofice XP installed in my system. But the application throws an exception "Invalid Cast Exception" for the following statement Dim wapp as Microsoft.office.interop.Word.Application wapp=new Microsoft.Office.Interop.Word.Application() wapp.Documents.Add() wapp.Visible=True I tried to Type cast it to document but it failed wdoc=CType(wapp.Documents.Add(),Microsoft.Office.Interop.Word.Document) But the same exception occurred Can anybody help me out of this problem.I need to use Office XP only with Office 2000 there is no problem Can i use Word 10.0 object library? this is not recognised in VB.NET Can someone help me out Devi ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
