You didn't say what the error message is.

Signature
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hi,
>
> I have a custom message form that contains To and Subject fields. I am using x-print control. Is there a work aroun to not to display the error
when I print this form. I do not care if it does not print the To: and
Subject fields, but I want to make sure when the user print he should not
see the error message. On error resume next does not seem to overcome the
erros. I do not know if there is any other way to use other types fields
that give the same functionlaity like click to button that will bring the
address list in the form. I can not change the subject field because the
code below
> Sub Item_PropertyChange(ByVal Name)
> Set oOutlook = Item.GetInspector.ModifiedFormPages
[quoted text clipped - 6 lines]
>
> Thanks
Ravi - 30 Dec 2003 19:26 GMT
The error message is "could not load an object because it is not available on tihs machine" This message repeats two times because the custom form use To: and Subject fields. After I click ok two times it prints without the To: textbox value.
Sue Mosher [MVP] - 30 Dec 2003 20:05 GMT
What version of Outlook?
Please take the time to quote the original message so that people reading
your current response can understand what you're talking about. Otherwise,
you may not receive the answer you're looking for.

Signature
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> The error message is "could not load an object because it is not available on tihs machine" This message repeats two times because the custom form use
To: and Subject fields. After I click ok two times it prints without the
To: textbox value.
Ravi - 30 Dec 2003 19:26 GMT
The error message is "could not load an object because it is not available on tihs machine" This message repeats two times because the custom form use To: and Subject fields. After I click ok two times it prints without the To: textbox value.
I am using Outlook2002(10.2627.4219) + SP2