Launch custom form in Organizational Forms Library from COM add-in

W

Wayneb

Hi

A customer form has been published to the Organization Forms Library and a
C# COM Add-in has been developed to add a CommandBarButton to the standard
tool bar.

My query regards the launching of this custom form from the CommandBarButton
without the user going through the hassel of locating a particular form in a
particular folder. Can this be done in a C# COM add-in and if so how?
 
S

Sue Mosher [MVP-Outlook]

To programmatically create a new instance of an item using a custom form,
use the Add method on the target folder's Items collection. If it's a
message form, you can use the Drafts folder as the target. If the target is
a default folder, you can use the Namespace.GetDefaultFolder method to
return it as a MAPIFolder object. Otherwise, walk the folder hierarchy to
get the desired folder.
 

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