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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer page at Design time

Status
Not open for further replies.

HVehari

Technical User
Sep 4, 2003
42
SA
My codes are in Vb6 and Epson printer LQ-300+
my problem is after printing a transaction that is of one
line only Printer eject the whole page. How Can I control
the page length.

With best regards

HVehari
 
What exactly do you want?

How are you printing the transaction?

If you're using the Printer object then don't use the EndDoc method before you finish whatever your doing.

Hope this helps.
David.
 
Hellow VDavid

My codes are

printer.print Msg

printer.endDoc

What I mean to say is that Printer eject the whole page
My Msg is of one line only. I need it should print the line
and a few line feeds so we can use rest of the paper for the next transaction.

With best regards,
HVehari
 
Don't send Printer.EndDoc until you want to finish

Just use :[tt]
Printer.Print Msg
Printer.Print vbCRLF & vbCRLF[/tt]

then send your next msg & next etc. When you're done send :
[tt] Printer.EndDoc[/tt]

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
HVehari

I agree with johnwm

The Printer.EndDoc tells windows your done with the job and that it should send it to the printer. If you want to keep working with the document just don't send the EndDoc until you have finish working with the document.

Hope this helps,
David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top