Information générale
Titre:
Find a solution for my printing problem!
I was having problem with a printing routine (posted last week).
Here's my solution that I wanna share. I simply use the printer like a file.
Open "\\MTLBDC\Facture" for Output as #1 ' Where "Facture" is the share name of the printer. Can also be lpt1 but my printer is not local
'now I print what I want, where I want.
Print #1, vbCrLf; vbCrLf; vbCrLf;
Print #1, Spc(3); "X"; Tab(40); Format(sMontant, "######.00$")
Print #1, vbCrLf; vbCrLf; vbCrLf; vbCrLf; vbCrLf;
' Even if I do that forever, windows won't do a page break !!! Perfect for printing on a point printer...
Close #1
Hope that will help somebody one of theses days...
Patrice Merineau
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement