|
Author |
Message |
Robert Thornbur #1 / 6
|
 Printing single lines
Does anyone know a way to make VB 6.0 L.E. print a line or 2 without doing a page feed? I have tried using a HP inkjet and also a tractor feed dot matrix. I had hoped to print values from my data acquisition/process control program - I need to see some of the output and can't wait for the Windows print spooler to fill a page before ejecting, nor do I want to print one line per page. I tried Printer.EndDoc but it apparently does a form feed. Any hope? I guess I could print the data to a file and read it from Notepad, but there is risk there if I forget to close the file while the process is open. Thanks, Bob
|
Tue, 11 Nov 2003 11:07:26 GMT |
|
 |
Hun & Hunet #2 / 6
|
 Printing single lines
On Fri, 25 May 2001 03:07:26 GMT, "Robert Thornburg"
Finish the line with a ';' (semicolon) ie: printer.Print "Hello"; I think that'll work. Quote: >Does anyone know a way to make VB 6.0 L.E. print a line or 2 without doing a >page feed? I have tried using a HP inkjet and also a tractor feed dot >matrix. I had hoped to print values from my data acquisition/process >control program - I need to see some of the output and can't wait for the >Windows print spooler to fill a page before ejecting, nor do I want to print >one line per page. I tried Printer.EndDoc but it apparently does a form >feed. >Any hope? I guess I could print the data to a file and read it from >Notepad, but there is risk there if I forget to close the file while the >process is open. >Thanks, >Bob
Regards, Frank.
|
Tue, 11 Nov 2003 13:02:09 GMT |
|
 |
Hun & Hunet #3 / 6
|
 Printing single lines
On Fri, 25 May 2001 03:07:26 GMT, "Robert Thornburg"
Whhoops, you asked about 'page feed' not line feed. How do you print to it now ? Printer.Print line 1 etcc.. Printer.EndDoc ? I believe, without sending an EndDoc it should not spool the print process. hth Quote: >Does anyone know a way to make VB 6.0 L.E. print a line or 2 without doing a >page feed? I have tried using a HP inkjet and also a tractor feed dot >matrix. I had hoped to print values from my data acquisition/process >control program - I need to see some of the output and can't wait for the >Windows print spooler to fill a page before ejecting, nor do I want to print >one line per page. I tried Printer.EndDoc but it apparently does a form >feed. >Any hope? I guess I could print the data to a file and read it from >Notepad, but there is risk there if I forget to close the file while the >process is open. >Thanks, >Bob
Regards, Frank.
|
Tue, 11 Nov 2003 13:07:06 GMT |
|
 |
dsavits #4 / 6
|
 Printing single lines
how about printing to the debug window? -d
Quote: > Does anyone know a way to make VB 6.0 L.E. print a line or 2 without doing a > page feed? I have tried using a HP inkjet and also a tractor feed dot > matrix. I had hoped to print values from my data acquisition/process > control program - I need to see some of the output and can't wait for the > Windows print spooler to fill a page before ejecting, nor do I want to print > one line per page. I tried Printer.EndDoc but it apparently does a form > feed. > Any hope? I guess I could print the data to a file and read it from > Notepad, but there is risk there if I forget to close the file while the > process is open. > Thanks, > Bob
|
Tue, 11 Nov 2003 13:14:54 GMT |
|
 |
xprt #5 / 6
|
 Printing single lines
You can always change Printer.Width, Printer.Height properties. So you could change the paper size to 1-2 lines. But you must send Printer.EndDoc to start printing... Quote: > Does anyone know a way to make VB 6.0 L.E. print a line or 2 without doing a > page feed?
|
Tue, 11 Nov 2003 14:01:48 GMT |
|
 |
Michael William #6 / 6
|
 Printing single lines
If you are using a locally attached "old fashioned" dot matrix printer using Win95/98 then the following should work for you: Dim fn As Long fn = FreeFile Open Printer.Port For Output As fn Print #fn, "A single line of text" Close fn Dim fn As Long fn = FreeFile Open Printer.Port For Output As fn Print #fn, "Another line of text" Close fn Mike
Quote: > Does anyone know a way to make VB 6.0 L.E. print a line or 2 without doing a > page feed? I have tried using a HP inkjet and also a tractor feed dot > matrix. I had hoped to print values from my data acquisition/process > control program - I need to see some of the output and can't wait for the > Windows print spooler to fill a page before ejecting, nor do I want to print > one line per page. I tried Printer.EndDoc but it apparently does a form > feed. > Any hope? I guess I could print the data to a file and read it from > Notepad, but there is risk there if I forget to close the file while the > process is open. > Thanks, > Bob
|
Tue, 11 Nov 2003 20:56:18 GMT |
|
|
|