XmlFormView.PrintWindow - Propriété
Obtient ou définit la valeur de boolean qui contrôle si la vue d'impression s'affiche.
Espace de noms : Microsoft.Office.InfoPath.Server.Controls
Assembly : Microsoft.Office.InfoPath.Server (dans Microsoft.Office.InfoPath.Server.dll)
Syntaxe
'Déclaration
Public Property PrintWindow As Boolean
Get
Set
'Utilisation
Dim instance As XmlFormView
Dim value As Boolean
value = instance.PrintWindow
instance.PrintWindow = value
public bool PrintWindow { get; set; }
Valeur de propriété
Type : System.Boolean
true, si la vue d'impression est affichée ; dans le cas contraire, false.
Remarques
Si le modèle de formulaire chargé dans le contrôle XmlFormView ne contient-elle pas un affichage conçu pour l'impression, la vue par défaut s'affiche et tous les contrôles liés aux données sont en lecture seule et autres contrôles, tels que des boutons sont masqués.
Exemples
Dans l'exemple suivant, la propriété PrintWindow du contrôle XmlFormView a true au cours de l'événement Initialize .
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;
}