Add-ins for Outlook 2k & XP using VB.Net

M

Mike Bulava

I'm writing a Add-in for Outlook 2000 & Xp.. I put it together on a station
with Office 2000, it installs and runs great, but It doesn't work on Office
XP.. I Opened up the code on a station with Office XP loaded. Now the
Office.dll has an Asembly name of Microsoft.Office.core where when I was
putting the App together on the Station with Office 2000 it was just Office.

My question is what can I do so that i don't have to complie a different
version of my Add-in for each version of Office?
 
K

Ken Slovak - [MVP - Outlook]

You need to use different PIA's for each version of Outlook you plan
to support and you have to be careful about the version of the
framework that's installed.

See http://www.microeye.com/resources/res_outlookvsnet.htm

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 
M

Mike Bulava

I'm not using the PIA that Microsoft posted for Office XP on either
station.. I'm just using the Office Assembly in the 1.1. Framework, and the
Com Interop for Outlook.


Ken Slovak - said:
You need to use different PIA's for each version of Outlook you plan
to support and you have to be careful about the version of the
framework that's installed.

See http://www.microeye.com/resources/res_outlookvsnet.htm

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


Mike Bulava said:
I'm writing a Add-in for Outlook 2000 & Xp.. I put it together on a station
with Office 2000, it installs and runs great, but It doesn't work on Office
XP.. I Opened up the code on a station with Office XP loaded. Now the
Office.dll has an Asembly name of Microsoft.Office.core where when I was
putting the App together on the Station with Office 2000 it was just Office.

My question is what can I do so that i don't have to complie a different
version of my Add-in for each version of Office?
 
K

Ken Slovak - [MVP - Outlook]

Use VB 6. That can compile addins that work with any version of
Outlook. DotNet languages are not the best thing to use for Outlook
COM addins if you need to support more than one version of Outlook or
the framework.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 
M

Mike Bulava

Ok then let me ask you this.. I have serval componets to this add-in that I
need to Use .Net for because the Funcationality just isn't there in VB6 or
is just to combersome to even attempt. IF I write the Add-in dll in VB 6 and
then compile my other componets in .net so that they are compatible with VB6
will that work?

Also do you happen to have a copy of the Office Add-in Template for VB6 you
could send me?

(e-mail address removed)


Ken Slovak - said:
Use VB 6. That can compile addins that work with any version of
Outlook. DotNet languages are not the best thing to use for Outlook
COM addins if you need to support more than one version of Outlook or
the framework.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm

Mike Bulava said:
So in other words I'm pretty much screwed and have to compile a different
Verision of the Add-in for each version of Outlook. That Stinks!
 
K

Ken Slovak - [MVP - Outlook]

I don't use DotNet to develop for Outlook because of all the problems
so I'm not sure if you can mix and match like that. You would find
information at the Microeye link I sent you to.

The standard Outlook COM addin sample templates are in the ItemsCB
sample project on the Resources page at www.microeye.com. You can
download it from there.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top