This topic has not yet been rated - Rate this topic

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;
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ