Scroll back in dot matrix using dos command

shasha960

Honorable
Sep 3, 2013
11
0
10,560
i am currently working in a windows form application(vb.net) on billing process(petrol bunk). i'm using dot matrix printer(TVS dot matrix msp series) in this.
here the printing section is worked well. but the problem is after printing the bill the paper has to be scrolled back.
i want to know how to do this using command mode.
 
Solution
Assuming system device names haven't changed since DOS, that would go something like:

echo whatever-you-want-to-send > lpt1

What you want to send may require escape characters.

InvalidError

Distinguished
Moderator
Check the printer's manual for the printer's control codes. Once you find the one for going back up one line, all you need to do is spam it however many times you need to bring it back in whatever position you want.
 

shasha960

Honorable
Sep 3, 2013
11
0
10,560


thanks for ur answer. i am unable to find code for tvs dot matrix printer. but i got that for epson printer.
how to send the codes to the printer via command.


 

shasha960

Honorable
Sep 3, 2013
11
0
10,560


thanks for your reply.....
I got the output. what I did is?
.... find ESC sequence for dot matrix printer....
....using that values I create a small program in c....
....that programme contains reverse feed values....
....then I call that exe file(generated by c programme) via vb.net whenever I need.....
thank u.....................