Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a solution for my printing problem!
Message
De
04/10/1999 18:48:19
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Find a solution for my printing problem!
Divers
Thread ID:
00272501
Message ID:
00272501
Vues:
62
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
Fil
Voir

Click here to load this message in the networking platform