I am working on a VB application to invoke Ms Word from a form & am working on a windows XP SP1 machine. I have Ms Office 97 & MSWORD8.OLB on the same machine on which I am developing the application.
The application invokes Word absolutely fine & the required document as well when I am in the development Environment (Visual Studio).
Following is the code that I have used:
Set Wrd = CreateObject("Word.Application")
Set newdoc = Wrd.Documents.Open("c:\abc.doc")
Run-time error'-2147023067 (80070725)': Automation Error
comes when I am trying to run the application on Windows Me machines. Those machines also have MS Office 97.
I have created the Setup and have not included the MSWORD8.OLB in the setup package.
The following are the other controls that are in the pack:
VB6 Runtime & OLE Automation
Could anybody tell me the possible reason be for the application to report this error?