XmlFormView.PrintWindow Property
Gets or sets the boolean value that controls whether the print view is shown.
Assembly: Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)
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.