im tryin to make the printer stop ejecting the paper after printing the last line..anybody experience on doing that? im using vb6, my printer is epson lx-300+..thank you
Printable View
im tryin to make the printer stop ejecting the paper after printing the last line..anybody experience on doing that? im using vb6, my printer is epson lx-300+..thank you
I had that printer earlier. I dont think you can do that through software.
Check your manual, you have to set it on the printer. I cant remember how, something like hold the three butons for 3 seconds, then something etc...
i think it's on the page setup, coz it will depend on the paper size of the form, cyril, i've used the code and it work for me. i ain't getting any error
problem is, i cant set the papersize property or even the height of the printer object..in the control panel > printers and faxes, i cant even choose which paper to use because there is no option there of a continuous paper or something...is there an escape character that whenever i print that, the printing will stop? thanks
Here is a link for the manual. I haven't looked at it yet.
http://www.epson.com.sg/epson/manual...catid=2&pid=21
Better link: page 98
http://www.epson.co.uk/support/manua...sers_Guide.pdf
Looks like this:
Esc O
VB Code:
Printer.Print chr$(27) & "O"
how do i use that in vb? is it like "printer.print cdec(79)" ???
chr(27) is the escape key
VB Code:
Printer.Print chr$(27) & "O"
still not working, it just prints out a small square and a O at the end, then ejects the paper to a full 11 inch height
by the way sir, my printer is LX-300+, i just noticed the user guide u gave me was for LQ-300
now that site is down. i'll keep trying.
the 300 does epson escape codes.
This looks good. The Escape and Abort api's that i never heard of.
http://www.kather.net/VisualBasicSource/VBTips/116.html
have you tried running the code in this site? mine says "overflow"..
Did you create the structure? Don't try the orientation, i don't think it would work on dot matrix, but may be wrong. Post the code that you are using.
ei dg i think in dot matrix it will depend on the paper source, if it is continous or not, regarding in the last line of the output, dot matrix will stop printing as it reaches the last line, if it is a continuos paper
i just followed the instructions written there..i cant understand the escapecode part..how would i knoe what escapecode to use?
Yet another way:
http://www.vbwm.com/forums/topic.asp?TOPIC_ID=4393
sir, i still cant find a way...could my printer be the factor? or is it really possible for the lx-300+ to do that?
Can you set it from the front keypad? After you run the escape codes, I still think you have to tell VB to use the constant for continuous feed.
is the constant for continuous feed the user defined?? with the value 256??