Problems in Outlook 2003 SP2 - CreateItemFromTemplate

  • Thread starter Sledge Hammer via OfficeKB.com
  • Start date
S

Sledge Hammer via OfficeKB.com

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
 
S

Sue Mosher [MVP-Outlook]

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.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sledge Hammer via OfficeKB.com

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.

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.
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
 
S

Sledge Hammer

Sue Mosher said:
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!
--
sledge
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sledge Hammer via OfficeKB.com

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.

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.
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
 
S

Sue Mosher [MVP-Outlook]

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.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Could you post your .oft files somewhere or mail them to me at (e-mail address removed)? 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.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sledge Hammer via OfficeKB.com

Sue said:
Could you post your .oft files somewhere or mail them to me at (e-mail address removed)? 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,
 
S

Sue Mosher [MVP-Outlook]

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?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sledge Hammer via OfficeKB.com

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.

So, what forms are triggering a prompt with CreateItemFromTemplate?
[quoted text clipped - 5 lines]
 
S

Sledge Hammer

OT: Why did my latter reply did not appear in MS Newsgroups
(http://www.microsoft.com/office/com...5e78014-73b5-4a22-a965-8d201f889eb7&p=1&ntf=1)
?

Sledge said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top