Programatically Adding a Button

G

Guest

Hi. I'm a developer who knows little about Outlook. I need to write a
small application that will add two buttons to the Outlook toolbar ("Spam"
and "Not Spam"), these buttons, when clicked, should call a web service that
will notify our anti-spam application of which list to put the mail's sender
on.
1. How do I add the buttons to the Outlook toolbar programatically? We
want to use a Delphi app to do this.
2. Can a button on the toolbar be programmed to call a web service? Does
it have to be done in VB (VBA?)?
Are there any tools available to help us speed up this project?

Thanks in advance,
Chris
 
S

Sue Mosher [MVP-Outlook]

1) Your application should be built as a COM add-in; see
http://www.outlookcode.com/d/comaddins.htm. You'll use the Office
CommandBars object to work with the toolbar.

2) Yes, Outlook 2002 and 2003 definitely support SOAP and web services.
(Outlook 2000 probably can if you add the redistributable XML and SOAP
components from Microsoft.) Just include the appropriate COM libraries in
your project.

For prototyping, Microsoft provides an Office Web Services Toolkit that
plugs into VBA and automatically builds proxy classes for interacting with
the desired services.
 

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