How to open a custom form using add in?

T

tomer

Hi,
I have create a custom form for a custom folder named "My Folder"
The form was published in the personal forms library
And from the folder properties:

"When posting to this folder ,use:" i selected the custom form.

How should i open this form(The default form?) from the add in?

Is it possible to create a code which set this properties?
I need it to be set in my installation program.

thanks in advance.
 
K

Ken Slovak - [MVP - Outlook]

Are you asking how to make your form the default for the folder using
code, or just how to open your custom form in that folder?

To open your form use the Add method of the Items collection of that
folder:
Set oTask = oFolder.Items.Add("IPM.Task.MyForm")
or whatever item type you are using.

To set the properties for the default form for a folder you must use
CDO 1.21 code or Extended MAPI or Redemption
(www.dimastr.com/redemption). See http://www.cdolive.com/cdo10.htm and
in particular the folder property tags CdoPR_DEF_MSG_CLASS,
CdoPR_DEF_FORM_NAME and CdoPR_DEF_FORM_ALLOWED

I posted some code a couple of months ago that showed how to publish a
form and set it as the default for a folder (form is publised in the
folder), you can search for it using Google.
 

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