Guest_imported
New member
- Jan 1, 1970
- 0
problem 1:
If I have to open an instance of MS word from VB with events. i am doing it using 'withevents' keyword. Now after doing this if i try to create an instance of word.application (which i need to do) using 'new' keyword, i get an error 'type mismatch'. I have also tried doing the same by declaring another variable of type word.application using new keyword and then assigning it to the one which is with events. but still it does not work.
problem 2:
if I have an instance of MSword already open while I run an application which opens and closes the MS word,I receive an error which says that the document I want to open is locked for editing. Though the same thing works fine if no instance of MS word is open while running the same problem.
please help me out with these problems at the earliest. I shall be obliged.
thanks
koolz.
kulvinderk@niit.com
If I have to open an instance of MS word from VB with events. i am doing it using 'withevents' keyword. Now after doing this if i try to create an instance of word.application (which i need to do) using 'new' keyword, i get an error 'type mismatch'. I have also tried doing the same by declaring another variable of type word.application using new keyword and then assigning it to the one which is with events. but still it does not work.
problem 2:
if I have an instance of MSword already open while I run an application which opens and closes the MS word,I receive an error which says that the document I want to open is locked for editing. Though the same thing works fine if no instance of MS word is open while running the same problem.
please help me out with these problems at the earliest. I shall be obliged.
thanks
koolz.
kulvinderk@niit.com