none
Outlook 2003 AddIn VSTO OOM MessageClass change, display() does not show custom form RRS feed

  • Question

  • Hello everyone,

    I do have a custom form published in personal library for custom messageclass "IPM.Note.Custom".

    What I'm trying to do is to open a message on the fly with the custom form.

    As i do not have the code right here, just some text:

     

    1. eventhandler_explorer_selectionchanged:

    - check mails if they should be opened with custom form and register open event handler (2.) for them

     

    2. eventhandler_customitem_open:

    - cancel the action

    - deregister eventhandler for object

    - change messageclass to custom and save

    - remember entryid

    - close object

    - call ComRelease, set object to null, call GC collect

    - init display with custom form (3.)

     

    3. display_with_custom_form (other thread):

    - get object again from session

    - call display()

    - cleanup on close (sets the message class back)

     

    PROBLEM: Outlook opens the item still with the old normal "IPM.Note" form.

    Is there anything else I can do to get Outlook to load my custom form "on the fly". Going through all items in the store(s) and permanently change the messageclass is the last I would like to do.

     

    Cheers & thanks in advance

    Sebastian

    Tuesday, July 19, 2011 10:20 AM

All replies