Click here to Skip to main content
15,895,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

I am printing receipts in my asp.net website. i want the receipts to cut automatically after printing. I need the code snippet for printer auto cutting.

Thanks in Advance,

Asfand
Posted

1 solution

I think you will have to contact the printer manufacturer to get information on how to do that.

Normally you have to send an escape charater to the port where you have the printer attached.

The manufacturer will most likely be able to supply you with sample code on how to do that...
 
Share this answer
 
Comments
NetMan2012 21-Sep-10 4:55am    
You are rigth the manufacturer will provide the characters list for printer but not the code. I have the characters list but i need to function.
Johnny J. 21-Sep-10 4:56am    
Then you need to look at Serial or Parallel communication depending on how the printer is connected. How do you print text to the printer? You should be able to just print the escape character the same way you print "normal" text"...

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