Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Guys,

Am developing a supermarket billing system and All the purchase and sales part are done.But On the sales part i have got a problem for printing the bill to customer.



What I have tried:

Tried using crystal report but i cant fix a height dynamically and the height of the bill is not stopping after my content was printed.Then tried by setting the least height but its getting white space between content.
After trying lot with crystal report am tried graphics.drawstring method.Its getting smooth printing,No height issue.But i cant manage the alignment of the content in the bill.
Am attaching the bill i have got using graphics.drawstring.Any one please help me for printing Bill in good alignment.
Posted
Updated 31-Mar-16 9:38am
Comments
RickZeeland 31-Mar-16 15:07pm    
Here is a CodeProject question with some interesting answers:
http://www.codeproject.com/Questions/158263/Print-to-Thermal-Printer-using-net

1 solution

What about direct printer control by sending escape codes to the printer directly ?
You use printer internal fonts and you do all the formatting by yourself. This way the ticket length is not a problem.
 
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