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