Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

control impact printer

Status
Not open for further replies.

jazzmaster111

Programmer
May 2, 2005
25
0
0
MX
Hi

Can I control an impact printer by vbscript?

where can I find information about this?


Thanks!!
 
what do you mean "impact"? is it "daisy wheel" printer?
is it connected to serial port?
if yes, it is then *pure* text_only printer, just select one from win printers, at printers setting tab.
 
It is connected to a parallel port

printer is "epson LX-300+
 
what is exact problem?
1) you need to connect to printer (watch line breaks):
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objWSHNet = CreateObject("WScript.Network")
objWSHNet.AddPrinterConnection "LPT1", strPrinterPath, False, strUsername, strPassword
Set objPrinter = objFS.CreateTextFile("LPT1:", True)
objPrinter.Write(strMessage)
objPrinter.Close
2) you need esc/p2 printer command language to control:
early printer manuals contained all the codes at apendix, now you need to search the internet for "esc/p2 printer command language
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top