How do I print a particular label or textbox in visual basic?
By printing, I am referring to the actual hardcopy that comes out of a printer...haha
Thanks for your help.
Jem00
How do I print a particular label or textbox in visual basic?
By printing, I am referring to the actual hardcopy that comes out of a printer...haha
Thanks for your help.
Jem00
The simple answer is...
Printer.Print Text1.Text
Good Luck
haha so easy, yet soo sought after.
Thanks.
One more question, if there are multiple printers avaliable how can I select which one to print from?
A couple of ways...
Dim P As Printer
Debug.Print Printer.DeviceName
For Each P In Printers
Debug.Print P.DeviceName
If P.DeviceName = "The Name of the printer" Then
Set Printer = P
Exit For
End If
Next P
Debug.Print Printer.DeviceName
or by using the common dialog control
Debug.Print Printer.DeviceName
CD.ShowPrinter
Debug.Print Printer.DeviceName
Good Luck
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.