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 Add-Ins / February 2004

Tip: Looking for answers? Try searching our database.

XPrint Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kate - 05 Feb 2004 21:36 GMT
According to the help documentation provided with the
XPrint Add-In the following is true:

Preview Property (Outlook XPrint Control)
Specifies whether the control displays the Print Preview
dialog box before printing the form. Set to True to
display the Print Preview dialog box. Set to False (the
default) to display the default Print dialog box.

Read/write Boolean.

Syntax

object.Preview

object   Required. An expression that returns an Outlook
XPrint control object.

Remarks

If this property is set to False (the default), the print
dialog box displayed by the XPrint components might be
hidden behind other windows on the screen, especially if
the user closed the dialog box by clicking Cancel.

This property must be set by code at run time. Properties
set at design time (that is, when the form is in design
mode) are not saved when the form is published.

Can you tell me how to set the property bu code at run
time as the above suggests? (The above is a copy /paste
from the help file)

Thanks
Sue Mosher [MVP] - 05 Feb 2004 23:40 GMT
Set objPage = Item.GetInspector.ModifiedFormPages("Name of your page")
Set XPrint1 = objPage.Controls("XPrint1") ' adjust to exact name of control
XPrint1.Preview = True

See http://www.slipstick.com/dev/propsyntax.htm#unbound for more information
on control syntax.

FYI, there is a separate newsgroup for Outlook forms issues --
microsoft.public.outlook.program_forms.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> According to the help documentation provided with the
> XPrint Add-In the following is true:
[quoted text clipped - 30 lines]
>
> Thanks
 
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.