Click to See Complete Forum and Search --> : Printing to dot matrix printers


Matt Knott
September 14th, 1999, 03:38 AM
Hello all,

I need to print to a dot matrix printer on a line-by-line basis. In the DOS days I would use the LPRINT command and I would be happy. But using Visual Basic (v6) I can only currently print whole pages when using the Printer object.

Any suggestions,


Matthew Knott.

drick
September 14th, 1999, 04:59 AM
try to use:

printer.print "some text"
printer.endDoc

Matt Knott
September 14th, 1999, 08:41 AM
Thanks but this (on my printer) results in the text being printed and then a form feed automatically sent to the printer when the EndDoc method is called.

What my aim is to print one line then later print another line (minus the form feed).

Any ideas?


Matthew Knott

drick
September 14th, 1999, 09:08 AM
Sorry but I thinks that isn't possible with VB

perhaps you can do this with the papersize property ???

Garry Dell
October 26th, 2000, 03:02 PM
printer.print "Some text for line 1"
printer.print "Some text for line 2"
etc...........
printer.enddoc

Iouri
October 26th, 2000, 03:14 PM
sCommandString = NETWORKPRINT & " " & sTextFile & " q=" & sQ & " s=" & sServerString
r = Shell("start.exe " & sCommandString, vbHide)

where NETWORKPRINT -> path to the novell command nprint (for example f:\public\nprint)
sTextFile -> your file to print
sQ - printer queue
sServerString - server name

Shell command will call nprint which will send to dot matrix printer

Iouri Boutchkine
iboutchkine@hotmail.com

CodeBlue
October 26th, 2000, 03:26 PM
This article may help you...
http://support.microsoft.com/support/kb/articles/Q175/0/83.ASP