Problems with the lastest Security Update for Outlook 2003 (KB892843, 1/9/2006)

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

Sledge Hammer via OfficeKB.com

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.a...ms-in-Outlook-2003-SP2-CreateItemFromTemplate
), 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 :)
 
G

Guest

Sledge Hammer via OfficeKB.com said:
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.
~~~~
 
G

Guest

Alun Jones said:
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.
 
Top