Home All Groups Group Topic Archive Search About

VB.NET - Automation - DLLs

Author
31 Mar 2005 3:09 PM
Bill S.
Can somebody please help?

I've installed those PIA's from Microsoft so that I can use Word 2000 etc.
with the new VB.NET. However, now in VB6 all my stuff, such as Word, Outlook
etc., are not registered anymore. Does anybody know how to remedy this
problem?

Author
31 Mar 2005 3:35 PM
Crouchie1998
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.
Author
31 Mar 2005 8:20 PM
Bill S.
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.

Show quoteHide quote
"Crouchie1998" <crouchie1***@discussions.microsoft.com> wrote in message
news:O6lN4dgNFHA.3328@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.
>
>