XPrint Control

K

Kate

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
 
S

Sue Mosher [MVP]

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.
 

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