B
Bruce Wood
I have a problem that is driving us bonkers here. We've tried any
number of workarounds and haven't been able to find a solution.
I've written a specialized print preview dialog that allows the user to
e-mail a report by choosing a menu item. Because I want the user to
fill in the destination name and e-mail subject, I call Outlook and pop
a message dialog. To do this, I call the
Outlook.ApplicationClass.CreateItem method that takes an OlItemType,
which I pass as MailItem.
This works for almost all users. However, for _some_ users, it fails
with a message:
System.Runtime.InteropService.COMException (0x841300003): The operation
failed.
at Outlook.ApplicationClass.CreateItem
These users report the failure as consistent: they say that they can
_never_ e-mail a report. It _always_ fails with this message. Other
users use the feature with no problems. I've tried everything I know to
even find out why this problem occurs for some people and not others.
We can't see the pattern, and none of my shot-in-the-dark attempts have
worked.
My app is written in C#, but I've seen the same error message cropping
up from time to time in this newsgroup, and you guys are the Outlook
gurus, so I figured I'd ask here. So far we've tried changing the
version of Outlook we call through the interop (didn't help). We also
tried catching the exception, waiting a few seconds, and then retrying.
That didn't help, either.
Our app is running on Citrix running Windows Server 2003. Both the RTM
and SP1 versions have the same problem. We are running Office 2003 SP2
with all hotfixes installed.
number of workarounds and haven't been able to find a solution.
I've written a specialized print preview dialog that allows the user to
e-mail a report by choosing a menu item. Because I want the user to
fill in the destination name and e-mail subject, I call Outlook and pop
a message dialog. To do this, I call the
Outlook.ApplicationClass.CreateItem method that takes an OlItemType,
which I pass as MailItem.
This works for almost all users. However, for _some_ users, it fails
with a message:
System.Runtime.InteropService.COMException (0x841300003): The operation
failed.
at Outlook.ApplicationClass.CreateItem
These users report the failure as consistent: they say that they can
_never_ e-mail a report. It _always_ fails with this message. Other
users use the feature with no problems. I've tried everything I know to
even find out why this problem occurs for some people and not others.
We can't see the pattern, and none of my shot-in-the-dark attempts have
worked.
My app is written in C#, but I've seen the same error message cropping
up from time to time in this newsgroup, and you guys are the Outlook
gurus, so I figured I'd ask here. So far we've tried changing the
version of Outlook we call through the interop (didn't help). We also
tried catching the exception, waiting a few seconds, and then retrying.
That didn't help, either.
Our app is running on Citrix running Windows Server 2003. Both the RTM
and SP1 versions have the same problem. We are running Office 2003 SP2
with all hotfixes installed.