Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find a solution for my printing problem!
Message
From
04/10/1999 18:48:19
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
Find a solution for my printing problem!
Miscellaneous
Thread ID:
00272501
Message ID:
00272501
Views:
63
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
Next
Reply
Map
View

Click here to load this message in the networking platform