Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
I am developing a windows application project for a super market.Now i want to create a sales bill .I need ITEM NAME,QTY,RATE,AMOUNT as Columns. I should enter the item name ,qty, rate and amount .For this i am using a datagridview and how can i print the contents of that control through a dotmatrix printer to make printing faster.The bill format which i expect to be printed out is should be like what i have shown below
No/10,Ammankovil street
Bill NO : 1 Date: 12/12/2012
Sl.No Item Name Qty Rate Amount
1 xyz 2 120.00 240.00
2 abc 1 500.00 500.00
3 asd 3 100.00 300.00
Total: 1040.00
Please provide me the code to do this.I have asked this question many times but nobody has given me a right solution.I do not want a printdialog to appear first and then go for printing as this will be tedious process in a crowdy supermarket where continous bill printing is to be made
Thanks in advance
Posted 1-Nov-12 1:16am
Edited 27-Feb-13 4:11am
ashriv at 1-Nov-12 8:23am
have you ever tried with crystal report?

1 solution

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

Solution 1

Dot matrix printers will print ASCII characters sent to it so just open the port (LPT1 for example and print to is) see here :[^]

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

  Print Answers RSS
0 OriginalGriff 390
1 Sergey Alexandrovich Kryukov 329
2 BillWoodruff 210
3 Afzaal Ahmad Zeeshan 204
4 CPallini 185
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175

Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 27 Feb 2013
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