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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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.
 
Back
Top