![]() |
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
|
|||
|
|||
![]()
Great problems for CreateItemFromTemplate users are introduced with this
Outlook update. This update fixes, however, the "Select Folder" problem ( http://www.officekb.com/Uwe/Forum.as...emFromTemplate ), but there appears a limit to how many forms an addin(?) can publish using CreateItemFromTemplate per session(?). An error strikes in VB6 addin code, when I publish a series of forms from .oft files using the method mentioned above. The error is as follows: "Method ~ of object ~ failed" (when not in debug mode), when I debug, it says: Err = -2147417851, "Automation error. The server threw an exception. ". Very strange. I have 13 forms (.oft files) to publish. No matter in which order I publish them, the 6th form throws the mentioned error upon PublishForm method: Set oNewItem = Application.CreateItemFromTemplate(oFSFile.Path, oDraftsFolder) .... Set oFormDesc = oNewItem.FormDescription oFormDesc.PublishForm 2 I'll keep you updated with my research on this (I'll try to do the same from VBA..). Notes on the service pack: Outlook version changes from Outlook Object Model: Application.Version: 11.0.0.6568 to 11.0.0.8002 Outlook-Help-about: 11.6568.6568 to 11.8002.6568 (some strange versioning though.. ![]() More information about this update: http://support.microsoft.com/kb/892843 Thank you in advance, for participating in this issue ![]() -- sledge -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...forms/200601/1 |
#2
|
|||
|
|||
![]()
"Sledge Hammer via OfficeKB.com" wrote:
Great problems for CreateItemFromTemplate users are introduced with this Outlook update. .... Set oNewItem = Application.CreateItemFromTemplate(oFSFile.Path, oDraftsFolder) The workaround for this is to not use the second parameter to CreateItemFromTemplate. Your message will get created in the Drafts folder by default, so it's not necessary to specify it, and if you leave off that second parameter, you won't see the crash that you've been seeing. Alun. ~~~~ |
#3
|
|||
|
|||
![]() "Alun Jones" wrote: "Sledge Hammer via OfficeKB.com" wrote: Great problems for CreateItemFromTemplate users are introduced with this Outlook update. ... Set oNewItem = Application.CreateItemFromTemplate(oFSFile.Path, oDraftsFolder) The workaround for this is to not use the second parameter to CreateItemFromTemplate. Your message will get created in the Drafts folder by default, so it's not necessary to specify it, and if you leave off that second parameter, you won't see the crash that you've been seeing. Thank you. This workaround however does not fix "Select Folder" issues (see previous post) -- it re-appears with such workaround applied. More over, the presence of second parameter and its semantics have worked with all earlier versions of Outlook. -- sledge |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Junk email update causes problems with Outlook | Pghwireman | Outlook - Installation | 1 | February 18th 06 11:37 PM |
I need to reverse aol security center changes to outlook 2003 | okmerlin | Outlook - Installation | 1 | February 7th 06 04:40 PM |
problems with Security Update for Outlook 2002 (KB892841) | Panda_man | Outlook - General Queries | 0 | January 24th 06 04:54 PM |
Cannot Access E-Mail After Security Update | J-Man | Outlook - General Queries | 7 | January 16th 06 10:45 PM |
How can I update my Outlook XP calendar with 2006 holidays? | bob8831 | Outlook - Calandaring | 2 | January 11th 06 02:31 PM |