X-print control throw error before printing custm form with to, subject

G

Guest

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 belo
Sub Item_PropertyChange(ByVal Name
Set oOutlook = Item.GetInspector.ModifiedFormPage
Set tsp = oOutlook("Page1"
Select Case Nam
Case "Subject
If I change subject to new field the item_property event will fail

Any suggestion

Thanks
 
S

Sue Mosher [MVP]

You didn't say what the error message is.
--
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


Ravi said:
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
 
G

Guest

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

Guest

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

Sue Mosher [MVP]

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.

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



Ravi said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top