Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Pls any one tell me how to stop paper feeding after printing a line in Dot-Matrix printer using vb.net & asp.net .
Posted
Comments
tiggerc 20-Jul-12 4:09am    
you need to not send a line feed chr(10) or line feed carriage return chr(13), can you show us your code?

document's 'Page setup' property page has a property 'Source Document' set it's value to '[feed,cut]'.

once it changed no need to change it, every time.

Happy Coding!
:)
 
Share this answer
 
v2
Old style printers like a dot matrix are driven entirely by the text they receive. There are several ASCII control characters set aside specifically to do this. Of particular interest to your question are the line feed (decimal 10, hex 0A), which move the page up one line, the vertical tab (decimal 11, hex 0B), which moves the which move the page up to the next tab row, and the form feed (decimal 12, hex 0C), which move to the next page. Note that the carriage return (decimal 13, hex 0D), only moves the print head to the start of the line, which is why the carriage return/line feed combo is used to move the print head to the start of a new line. With an old printer, just make sure you are not sending any of these control characters in your text stream.
 
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