Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TonPrintDocument.Print()
End Sub
Private Sub TonPrintDocument_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles TonPrintDocument.PrintPage
e.Graphics.DrawIcon(MyBase.Icon, New System.Drawing.Rectangle(100, 100, 32, 32))
End Sub,
----
(Coloration syntaxique automatique par Kenji)
Tu trace dans TonPrintDocument_PrintPage ce qui tois être imprimer.