![]() |
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 |
#5
|
|||
|
|||
![]()
I figured out a solution. The problem was with the second parameter of
publishform. string dllPath ; object missing = System.Reflection.Missing.Value; Ol.MailItem theItem; Ol.FormDescription theDesc; dllPath = GetAssemblyPath(); //Environment.GetFolderPath(Environment.SpecialFolde r.Personal) theItem = (Ol.MailItem) this.OutlookApp.CreateItemFromTemplate(dllPath + formPath, missing); theDesc = (Ol.FormDescription) theItem.FormDescription; theDesc.DisplayName = formName; theDesc.PublishForm(Ol.OlFormRegistry.olPersonalRe gistry,missing ); theItem.Close(Ol.OlInspectorClose.olDiscard); Marshal.ReleaseComObject(theItem); Marshal.ReleaseComObject(theDesc); On Jan 15, 1:24 pm, "Ken Slovak - [MVP - Outlook]" wrote: A problem with the Inbox would definitely be a problem with your code. However, I don't know what the UserPermissions property is in the Inbox folder, it's not an exposed property in the Outlook object model. DisplayName defaults to the custom MessageClass unless you enter a different string for that property when the custom form is published. It's not an important property for anything other than what shows up in the custom forms manager. -- Ken Slovak [MVP - Outlook]http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm "spareway" wrote in ooglegroups.com... Hi Ken, All my objects look ok, except for the inBoxFolder. I am not sure if this is an issue but when i look at the UserPermissions property of the inBoxFolder object it says: error: an exception of type: {System.Runtime.InteropServices.COMException} occurred. could this be the problem? Also the DisplayName is set to IPM.Note.XXX. Is this ok? What is display name used for anyway? thanks, craig- Hide quoted text -- Show quoted text - |
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 |