Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2692 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  [VB.NET] Comment positionner ma grid lors de son impression?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[VB.NET] Comment positionner ma grid lors de son impression?

n°1273048
djoao
Posté le 25-12-2005 à 00:35:09  profilanswer
 

salut à tous  :hello:  
 
j'ai trouvé un exemple de code pour imprimer un datagrid.  
le problème est que je n'arrive pas a modifier ce code pour mettre la grid où je veux sur la feuille...  
 
Voila le code, pouvez-vous m'aider?  
 
Private Sub ImprimerGrid_Click(ByVal sender As System.Object, ByVal e As _  
   System.EventArgs) Handles PrintGrid.Click  
   PrintDocument1.Print()  
End Sub  
 
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, _  
   ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles _  
   PrintDocument1.PrintPage  
   Dim myPaintArgs As New PaintEventArgs(e.Graphics, New Rectangle(New _  
      Point(0, 0), Me.Size))  
   Me.InvokePaint(DataGrid1, myPaintArgs)  
End Sub  
 
MERCI

mood
Publicité
Posté le 25-12-2005 à 00:35:09  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  [VB.NET] Comment positionner ma grid lors de son impression?

 

Sujets relatifs
Format d'impressionImpression d'image de fond (background).
[CSS] problème de mise en page à l'impressionASP.NET et EAN13
[.NET C#, DataTable] Modification d'une row et répercution graphiquecherche un programme pour calculer le nbre d'impression sur un pc
[Asp.Net] [Stage] Partage de fichiersVB6 : Grid a imprimer sans l'objet "Printer"
QUESTION Accéder au Net depuis un intranet depuis VPN ????[VB.NET] checkbox dans un treeview
Plus de sujets relatifs à : [VB.NET] Comment positionner ma grid lors de son impression?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR