Click here to Skip to main content
12,942,930 members (60,083 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Advance Thank to all
Hi friends how to stop a printer after my data end......?

Any one help me
Posted 26-Nov-12 20:45pm
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,633
CHill60 2,880
Maciej Los 2,268
Jochen Arndt 1,900
ppolymorphe 1,755

Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100