Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / December 2003

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ravi - 30 Dec 2003 18:21 GMT
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
Sue Mosher [MVP] - 30 Dec 2003 19:00 GMT
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.
Ravi - 30 Dec 2003 22:01 GMT
I am using Outlook2002(10.2627.4219) +  SP2
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.