Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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
Comments
tiggerc at 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
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 445
1 CHill60 410
2 Sergey Alexandrovich Kryukov 354
3 BillWoodruff 190
4 PIEBALDconsult 160


Advertise | Privacy | Mobile
Web03 | 2.8.141015.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2014
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