![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I am trying to publish a form via an outlook addin. When I call Publish Form, I get an exception that says: one or more paramters are incorrect. any ideas? thanks, craig Outlook.MailItem theItem; Outlook.FormDescription theDesc; //Environment.GetFolderPath(Environment.SpecialFolde r.Personal) Ol.MAPIFolder draftFolder = OutlookApp.Session.GetDefaultFolder(Ol.OlDefaultFo lders.olFolderDrafts); theItem = (Outlook.MailItem) this.OutlookApp.CreateItemFromTemplate(formPath, draftFolder); theDesc = theItem.FormDescription; theDesc.DisplayName = formName; Ol.MAPIFolder inboxFolder = OutlookApp.Session.GetDefaultFolder(Ol.OlDefaultFo lders.olFolderInbox); theDesc.PublishForm(Outlook.OlFormRegistry.olPerso nalRegistry,inboxFolder ); theItem.Close(Outlook.OlInspectorClose.olDiscard); |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't change form and publish in OL2007 | Nick Payne | Outlook - Using Forms | 5 | December 20th 06 12:32 PM |
publish form to all users | tke402 | Outlook and VBA | 1 | December 20th 06 12:29 PM |
Publish custom form MAPI error | jharris | Outlook - Using Forms | 2 | November 22nd 06 03:41 PM |
Using Access to design a form and then publish it | djb | Outlook - General Queries | 3 | September 14th 06 05:22 PM |
Publish Form to Outlook Folder | Motaad | Outlook - Using Forms | 2 | August 10th 06 01:43 PM |