Printer

Mayno_123 Messages postés 28 Date d'inscription lundi 8 janvier 2007 Statut Membre Dernière intervention 7 décembre 2007 - 26 nov. 2007 à 13:46
cs_Exploreur Messages postés 4821 Date d'inscription lundi 11 novembre 2002 Statut Membre Dernière intervention 15 novembre 2016 - 26 nov. 2007 à 13:59
Salut tout le monde, j'ai essayer d'imprimer MSFlexGrid avec le code a trois line :

Printer.Orientation = vbPRORLandscape
Printer.PaintPicture MSFlexGrid.Picture, 0, 0
Printer.EndDoc

Ce code marche correctement. Il imprime juste le contenu de MSFlexGrid mais si je veux ajouter un titre au debut de la feuille, la numerotation des pages, la date et le temps de l'impression.
Quelle code je l'utilise ?
Merci bien pour votre attention.

4 réponses

cs_Exploreur Messages postés 4821 Date d'inscription lundi 11 novembre 2002 Statut Membre Dernière intervention 15 novembre 2016 15
26 nov. 2007 à 13:52
Salut,


Intérèsse toi à :


Printer.CurrentX
Printer.CurrentY


A+
Exploreur

 Linux a un noyau, Windows un pépin


 
0
cs_Exploreur Messages postés 4821 Date d'inscription lundi 11 novembre 2002 Statut Membre Dernière intervention 15 novembre 2016 15
26 nov. 2007 à 13:54
Re,


Remarque, en cherchant un peu avec le moteur de recherche on trouve cela....


A+
Exploreur

 Linux a un noyau, Windows un pépin


 
0
Mayno_123 Messages postés 28 Date d'inscription lundi 8 janvier 2007 Statut Membre Dernière intervention 7 décembre 2007 1
26 nov. 2007 à 13:55
Merci Exploreur pour ta reponse, mais ta reponse n'est pas claire
0
cs_Exploreur Messages postés 4821 Date d'inscription lundi 11 novembre 2002 Statut Membre Dernière intervention 15 novembre 2016 15
26 nov. 2007 à 13:59
Re,

Printer.Orientation = vbPRORLandscapePrinter.CurrentX 0: Printer.CurrentY 1:  Printer.Print "Coucou c'est moi"
Printer.PaintPicture MSFlexGrid.Picture, 0, 0
Printer.EndDoc
A+
Exploreur

 Linux a un noyau, Windows un pépin

 
0
Rejoignez-nous