Export (0) Print
Expand All

XmlFormView.PrintWindow property

Gets or sets the boolean value that controls whether the print view is shown.

Namespace:  Microsoft.Office.InfoPath.Server.Controls
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)

public bool PrintWindow { get; set; }

Property value

Type: System.Boolean
true, if the print view is shown; otherwise, false.

If the form template loaded in the XmlFormView control does not contain a view designed for printing, the default view is shown and all data-bound controls are read-only and other controls, such as buttons, are hidden.

In the following example, the PrintWindow property of the XmlFormView control is set to true during the Initialize event.

protected void XmlFormView1_Initialize(object sender, InitializeEventArgs e)
{
    XmlFormView1.PrintWindow = true;
}

Community Additions

ADD
Show:
© 2014 Microsoft