Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / January 2006

Tip: Looking for answers? Try searching our database.

Problems in Outlook 2003 SP2 - CreateItemFromTemplate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sledge Hammer - 14 Oct 2005 11:31 GMT
The code line written below emerges a "Select Folder" dialog. Such behavior
is untolerated whilst publishing forms programically.
REPRODUCE: export any Message (IPM.Note) or Post (IPM.Post) custom form to a .

oft file.
Within VBA editor execute the following command:
Application.CreateItemFromTemplate("c:\exported.oft", Application.Session.
GetDefaultFolder(olFolderInbox))
- replace c:\exported.oft with corresponding path and file name of your form

- second argument may point to any Outlook folder or can be omitted --
Select folder dialog pops up all the time.

Could you please help with this issue?..

Thank you in advance
Sue Mosher [MVP-Outlook] - 14 Oct 2005 13:25 GMT
This is normal and expected behavior for an unpublished post form. I'll take your word that it also happens for a message form, but I haven't seen it. The behavior can't be changed.

If the goal is to publish such forms programmatically without prompts, there is another approach you can take: Distribute published forms in a .pst file. You can then use the MAPIFolder.Items.Add method to create an item using the published form and then, from that item, publish to any other desired location.  
Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> The code line written below emerges a "Select Folder" dialog. Such behavior
> is untolerated whilst publishing forms programically.
[quoted text clipped - 12 lines]
>
> Thank you in advance
Sledge Hammer - 17 Oct 2005 08:35 GMT
However, everything works without prompts in any other Outlook version but
2003 SP2.. This should be included into the list of new limitations in SP2

>This is normal and expected behavior for an unpublished post form. I'll take your word that it also happens for a message form, but I haven't seen it. The behavior can't be changed.
>
[quoted text clipped - 4 lines]
>>
>> Thank you in advance
Sledge Hammer - 18 Oct 2005 21:18 GMT
> If the goal is to publish such forms programmatically without prompts, there is another approach you can take: Distribute published forms in a ..pst file. You can then use the MAPIFolder.Items.Add method to create an item using the published form and then, from that item, publish to any other desired location.  

Thank You, Sue. However, your offered workaroud is far from trivial when
implementing it in a product. Could there be any other solutions?
Can we call this a new undocumented limitation of Office 2003 Service Pack 2 ?
What does Microsoft has to say about it?..

Thank you, folks, in advance!
Signature

sledge

> > The code line written below emerges a "Select Folder" dialog. Such behavior
> > is untolerated whilst publishing forms programically.
[quoted text clipped - 12 lines]
> >
> > Thank you in advance
Sue Mosher [MVP-Outlook] - 24 Oct 2005 17:14 GMT
There is a KB article at http://support.microsoft.com/?id=907985 documenting changes made in SP2 relating to custom properties in unpublished forms. It doesn't mention the prompts that you are encountering, but we Outlook MVPs have concluded that they are an undocumented side effect of the same changes. Needless to say, it's not a pretty situation, given how many people rely on CreateItemFromTemplate for simple form publishing chores.
Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

>> If the goal is to publish such forms programmatically without prompts, there is another approach you can take: Distribute published forms in a ..pst file. You can then use the MAPIFolder.Items.Add method to create an item using the published form and then, from that item, publish to any other desired location.  
>
[quoted text clipped - 15 lines]
>> > - second argument may point to any Outlook folder or can be omitted --
>> > Select folder dialog pops up all the time.
Sledge Hammer - 20 Oct 2005 13:50 GMT
Can we call this a new undocumented limitation of Office 2003 Service Pack 2 ?
As such 'Select Folder', when publishing form, does not appear in any other
Outlook version except for Outlook 2003 with its newest SP2..

>This is normal and expected behavior for an unpublished post form. I'll take your word that it also happens for a message form, but I haven't seen it. The behavior can't be changed.
>
[quoted text clipped - 4 lines]
>>
>> Thank you in advance
Sue Mosher [MVP-Outlook] - 26 Oct 2005 19:21 GMT
Could you post your .oft files somewhere or mail them to me at webmaster@outlookcode.com? The post form prompt issue seems to be common and known, but the message form prompting is quite unusual. I couldn't duplicate it here. Any information you could provide on how that form was created might be helpful. Thanks.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> The code line written below emerges a "Select Folder" dialog. Such behavior
> is untolerated whilst publishing forms programically.
[quoted text clipped - 12 lines]
>
> Thank you in advance
Sledge Hammer - 28 Oct 2005 11:47 GMT
>Could you post your .oft files somewhere or mail them to me at webmaster@outlookcode.com? The post form prompt issue seems to be common and known, but the message form prompting is quite unusual. I couldn't duplicate it here. Any information you could provide on how that form was created might be helpful. Thanks.

Pardon me, I have got confused here, as I publish IPM.Note.Message, thus the
part 'Note.' has omitted in my mind.
Confirmed: IPM.Message.* does not trigger such behaviour.

Thank you for investigating this with me,
--
sledge
Sue Mosher [MVP-Outlook] - 28 Oct 2005 12:35 GMT
Now I'm confused. IPM.Message.* would be a custom-built MAPI form, not a form built on one of the Outlook basics forms. IPM.Note.* would be a custom Outlook form based on the message form.

So, what forms are triggering a prompt with CreateItemFromTemplate?

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

>>Could you post your .oft files somewhere or mail them to me at webmaster@outlookcode.com? The post form prompt issue seems to be common and known, but the message form prompting is quite unusual. I couldn't duplicate it here. Any information you could provide on how that form was created might be helpful. Thanks.
>
[quoted text clipped - 5 lines]
> --
> sledge
Sledge Hammer - 02 Nov 2005 13:57 GMT
IPM.Message.* -- there would be no of such form. Just ignore it, as where I
accidently typed IPM.Message, I ment IPM.Note. Pardon me again :)

>Now I'm confused. IPM.Message.* would be a custom-built MAPI form, not a form built on one of the Outlook basics forms. IPM.Note.* would be a custom Outlook form based on the message form.
>
[quoted text clipped - 5 lines]
>> --
>> sledge
Sledge Hammer - 11 Jan 2006 17:14 GMT
I have news for this issue:

Lastest Security patch called 1/9/2006 Security Update for Outlook 2003
(KB892843) (English version) (I've gotten it via
http://office.microsoft.com/en-us/officeupdate/default.aspx, whole info
though nothing relevant: http://support.microsoft.com/kb/892843) fixes this
problem ("Select folder does not appear"), but introduces a bunch of more:
look other post, called "Problems with lastest Security Update for Outlook
2003 (KB892843, 1/9/2006)"

>The code line written below emerges a "Select Folder" dialog. Such behavior
>is untolerated whilst publishing forms programically.
[quoted text clipped - 12 lines]
>
>Thank you in advance
Sledge Hammer - 12 Jan 2006 10:01 GMT
OT: Why did my latter reply did not appear in MS Newsgroups
(http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public
.outlook.program_forms&tid=85e78014-73b5-4a22-a965-8d201f889eb7&p=1&ntf=1
)
?

>I have news for this issue:
>
[quoted text clipped - 11 lines]
>>
>>Thank you in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.