Re: Urgent: custom published to organizational forms library problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Sue Mosher [MVP-Outlook] (suemvp_at_outlookcode.com)
Date: 01/16/05


Date: Sun, 16 Jan 2005 17:33:37 -0500

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
     http://www.outlookcode.com/jumpstart.aspx
"Bingo" <anonymous@discussions.microsoft.com> wrote in message 
news:11ef01c4fb7b$bca64920$a301280a@phx.gbl...
>
> 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
>>a new item explicitly with your message form. The
> MessageClass on the
>>resulting will be IPM.Note if the form was not available.
>>
>>"Bingo" <anonymous@discussions.microsoft.com> wrote in
> message
>>news:0f8501c4fa8c$43e45760$a301280a@phx.gbl...
>>>
>>> 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.


Relevant Pages

  • Re: How to lauch the Custom Form after changing the Msg Class of a
    ... I created a new custom form with Message Class ... type 'IPM.Note.Testing' and created a new folder with Message Class type ... and published in this folder. ...
    (microsoft.public.outlook.program_forms)
  • Re: How to lauch the Custom Form after changing the Msg Class of a
    ... The form is published in the folder named 'Testing' ... I am totally new to this Outlook development. ... I have designed a Custom form in Outlook 2003 using the Message Class ...
    (microsoft.public.outlook.program_forms)
  • Re: How to lauch the Custom Form after changing the Msg Class of a
    ... I created a new custom form with Message Class ... type 'IPM.Note.Testing' and created a new folder with Message Class type ... and published in this folder. ...
    (microsoft.public.outlook.program_forms)
  • Re: Custom Contact Form Questions
    ... This code changes the message class for existing items, ... To make a custom form the default for all contacts requires a registry ... > This works only when your ContactItem is in the default folder. ...
    (microsoft.public.outlook.program_vba)
  • Re: Code behind the form is not working
    ... > I wouldn't make any assumptions about forms published to different folders having the same message class. ... > A received item will show the read page of the associated form, regardless of what folder it's in. ... >> The traget folder has the same form installed as the target one. ... Is that the same as the class for the form published in the target folder? ...
    (microsoft.public.outlook.program_forms)