I have old tried-and-true VB6 applications that have been running good for
quite sometime. For these VB6 applications, I "drive" MSWord, MSAccess,
Excel, and Outlook through the COM interface, so, naturally, I have these
object models added to my projects. Now, For my VB.NET projects, I also
"drive" MSWord and so on, so I have these object models added to the VB.NET
projects as well. Everything runs fine from the Visual Studio IDE. However,
when I compile the .NET program into an EXE I would recieve these wierd
automation errors. So, it was indicated through various web sites that I
should perhaps install the PIA's from Microsoft to eliminate the problem. In
a way, it did. But, now I recieve "Query Interface" error. I can allocate a
"Word.Appication" variable using new, but as soon as I use the variable I
recieve the "Query Interface" error. Finally, to top everything off, all the
components in my VB6 applications have been mysteriously "unregistered" as a
result of installing those PIA's.
"Crouchie1998" <cr**********@discussions.microsoft.com> wrote in message
news:O6**************@TK2MSFTNGP14.phx.gbl...
I am not sure if I totally usderstand what you mean. If I don't then please
elaborate.
The PIA's are mean't for Office XP.
If you are using Office 2000 then just add the specific object model; MS
Word for example to your project.