Click here to Skip to main content
15,909,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Advance Thank to all
Hi friends how to stop a printer after my data end......?



Any one help me
Posted
Comments
tiggerc 28-Nov-12 7:08am    
How are you getting the text to print to the dot matrix? are you appending any characers to the end of the string you are sending to the printer.

The dot matrix will be responding to ascii characters 10 and 13 which are line feed and carriage return. vb has a character which is vbcrlf which may be appended to the end of text, you may need to remove this/these characters

1 solution

Older printers are stupid: they will not advance to the next page unless you tell them to. This is done by "printing" a form feed character, ASCII 12. If your dot matrix is an older printer -- and chances are good that it is -- then all you should need to do is catch the form feed and delete it from the text stream.

Of course, it would be very helpful to know what you are already trying.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900