Printing single lines 
Author Message
 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  
 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  
 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  
 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  
 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  
 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  
 
 [ 6 post ] 

 Relevant Pages 

1. Printing single lines

2. Any way to Print Single Lines to a Printer?

3. How to print a single line without formfeed

4. HELP needed - printing only single lines not pages

5. textbox enabling: single line printing

6. Dim multiple lines or single line

7. Printing Two RTF controls in a single print session

8. Printing multiple reports as a single print job (or email)

9. Change settings for printer from single sided printing to double sided printing and vice versa

10. How to Print Line by Line

11. Printing other lines from Multi-Line text box

12. Printing line-by-line to a printer over a network

 

 
Powered by phpBB® Forum Software