S
shubhangi
hello
I've Customized IPM.POST form & need to publish it to folder when my
addin(VSTO SE ,OL 2007) starts (in Application_StartUp).When I run publish
code it always prompts for "Select Folder" though I've given the folder
object as an arg. to PublishForm().How to avoid the prompt for "Select
Folder"
I'm using below code
Dim olFormDesc As Outlook.FormDescription
Dim olPostItem As Outlook.PostItem
olPostItem = Application.CreateItemFromTemplate(AppPath & "\Case.oft")
olFormDesc = olPostItem.FormDescription
olFormDesc.Name = "Case"
olFormDesc.DisplayName = "Case"
olFormDesc.Hidden = False
olFormDesc.PublishForm(Outlook.OlFormRegistry.olFolderRegistry, ObjFolder)
olPostItem = Nothing
olFormDesc = Nothing
Thanks
I've Customized IPM.POST form & need to publish it to folder when my
addin(VSTO SE ,OL 2007) starts (in Application_StartUp).When I run publish
code it always prompts for "Select Folder" though I've given the folder
object as an arg. to PublishForm().How to avoid the prompt for "Select
Folder"
I'm using below code
Dim olFormDesc As Outlook.FormDescription
Dim olPostItem As Outlook.PostItem
olPostItem = Application.CreateItemFromTemplate(AppPath & "\Case.oft")
olFormDesc = olPostItem.FormDescription
olFormDesc.Name = "Case"
olFormDesc.DisplayName = "Case"
olFormDesc.Hidden = False
olFormDesc.PublishForm(Outlook.OlFormRegistry.olFolderRegistry, ObjFolder)
olPostItem = Nothing
olFormDesc = Nothing
Thanks