Share via


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)

Syntax

'Declaration
Public Property PrintWindow As Boolean
    Get
    Set
'Usage
Dim instance As XmlFormView
Dim value As Boolean

value = instance.PrintWindow

instance.PrintWindow = value
public bool PrintWindow { get; set; }

Property Value

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

Remarks

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.

Examples

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

Protected Sub XmlFormView1_Initialize(ByVal sender As Object, ByVal e As Microsoft.Office.InfoPath.Server.Controls.InitializeEventArgs) Handles XmlFormView1.Initialize
    XmlFormView1.PrintWindow = True
End Sub
protected void XmlFormView1_Initialize(object sender, InitializeEventArgs e)
{
    XmlFormView1.PrintWindow = true;
}

See Also

Reference

XmlFormView Class

XmlFormView Members

Microsoft.Office.InfoPath.Server.Controls Namespace