Imprimer

Résolu
jerry6510 Messages postés 19 Date d'inscription vendredi 7 avril 2006 Statut Membre Dernière intervention 14 mars 2007 - 20 déc. 2006 à 16:49
 Utilisateur anonyme - 20 déc. 2006 à 17:27
slt a tous !
je voudrai savoir comment je peux mettre en page avec vb.net et ensuite imprimer!!!

3 réponses

Utilisateur anonyme
20 déc. 2006 à 16:57
Salut,

Avec les composants PageSetupDialog, PrintDocument, PrintPreviewControl.






__________
Kenji
3
jerry6510 Messages postés 19 Date d'inscription vendredi 7 avril 2006 Statut Membre Dernière intervention 14 mars 2007
20 déc. 2006 à 17:02
a partir du print document je tape quoi comme code dedans...
0
Utilisateur anonyme
20 déc. 2006 à 17:27
Exemple, ca imprime l'icon de ta form :



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.





__________
Kenji
0
Rejoignez-nous