Sereth
10-03-2003, 03:26 PM
Im sorry to bother you with such a basic question, but I dont know a whole lot about VB. I was wondering if someone could tell me scripting or whatever so I could print. I just want to print out a page of labels. Thanks in advance.
LabelTN
05-16-2004, 11:20 PM
You have to use the Printer object.
First, set the printing options :
Printer.Orientation = vbPRORPortrait 'set the page to Portrait
Printer.PrintQuality = vbPRPQDraft 'set the quality, this is Draft
Now set the Fonts :
Printer.Font.Name = "Courier New"
Printer.Font.Size = 12
Then tell the printer what to print :
Printer.Print "Label4=" & Label4.caption
Printer.Print "" 'this is an empty line
Printer.Print "Label5=" & Label5.caption
Printer.Print ""
Printer.Print "Hey guys how are you?"
Then tell the printer you have finished, and that he can print :
Printer.EndDoc
Each Print command is a line on the paper.
Hope this helps ;)
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.