|
-
September 14th, 1999, 03:38 AM
#1
Printing to dot matrix printers
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.
-
September 14th, 1999, 04:59 AM
#2
Re: Printing to dot matrix printers
try to use:
printer.print "some text"
printer.endDoc
-
September 14th, 1999, 08:41 AM
#3
Re: Printing to dot matrix printers
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
-
September 14th, 1999, 09:08 AM
#4
Re: Printing to dot matrix printers
Sorry but I thinks that isn't possible with VB
perhaps you can do this with the papersize property ???
-
October 26th, 2000, 03:02 PM
#5
Re: Printing to dot matrix printers
printer.print "Some text for line 1"
printer.print "Some text for line 2"
etc...........
printer.enddoc
-
October 26th, 2000, 03:14 PM
#6
Re: Printing to dot matrix printers
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
[email protected]
-
October 26th, 2000, 03:26 PM
#7
Re: Printing to dot matrix printers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|