Urgent: custom published to organizational forms library problem

B

Bingo

I created a custom email form with several user defined
fields. The checkbox of send form definition with form
is unchecked. Then the form is published to
Organizational Forms Library. All users can see the form
under the Organizational Forms Library. But some of them
do not see these user defined fields at all when they
choose this form. Should I publish the form with the
checkbox checked? Thanks.
 
B

Bingo

Sue,

After I deleted FRMCACHE.DAT file, everything is
working. Now the question is how I can verify if a user
has my custom form installed? Right now at the startup
in my VB app, I create a new mail and reset the
MessageClass to my custom form. Then I checked if the
user defined fields are null. Are there any other
approaches to check a custom form without using the
message class? Thanks.
 
S

Sue Mosher [MVP-Outlook]

A better solution would be to use the MAPIFOlder.Items.Add method to create
a new item explicitly with your message form. The MessageClass on the
resulting will be IPM.Note if the form was not available.
 
B

Bingo

Sue,

Since the form is published to the Organizational Forms
Library, not associated with a specific folder, how do I
create a new item explicitly with my message form using
MapiFolder.Items.Add method? Thanks.
-----Original Message-----
A better solution would be to use the
MAPIFOlder.Items.Add method to create
 
S

Sue Mosher [MVP-Outlook]

If the target folder is objFolder, specify the message class as the
argument:

Set newItem = objFolder.Items.Add("IPM.Note.Whatever")

For a message form, you can use the Drafts folder as the target.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

Bingo

Sue,

It works perfect! Thanks so much.

Additional question. Does MS provide documentation on
Outlook COM object to explain things like the optional
parameter Type for this Items.Add method? Thanks again.
 
S

Sue Mosher [MVP-Outlook]

In general, check the object browser: Press ALt+F11 to open the VBA
environment in Outlook, then press F2. Switch from <All Libraries> to
Outlook to browse all Outlook objects and their properties, methods, and
events. Select any object or member, then press F1 to see its Help topic.

If you don't find what you need there, ask here.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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