Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to POS receipt printing. Once, a transaction is complete, my application should print a receipt for the customer using XPrinter POS 80C from a DataGridView with the following items: product name, quantity, subtotal, grand-total, transaction date, and the staff login id.

Your assistance will be greatly appreciated.
Best Regards

What I have tried:

I tried using DGVPrinter.cs; yes, it successfully printed out a receipt from the XPrinter POS 80c machine but the receipt was not organized with the afore-mentioned items from my DataGridView through ms SQL server 2014. So, do i require a print module for this task? I am so confused.
I have used google search and video tutorials on youtube, and couldn't get any suitable help topic on this.
Posted
Updated 7-Sep-18 21:37pm
v3
Comments
OriginalGriff 8-Sep-18 3:15am    
What have you actually tried?
Where are you stuck?
What help do you need?
Have you installed drivers? Have you tried printing to them? What happened?

Use the "Improve question" widget to edit your question and provide better information.
OriginalGriff 8-Sep-18 3:17am    
BTW: I checked with everybody here and it may be urgent to you, but it isn't to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response.

1 solution

What you need to do is set up a PrintDocument[^] and select your thermal printer as the target.

You then handle the PrintPage event for each receipt you want to print, and format the information exactly as you want it on the printer. There is a link in the document to the PrintDocument.PrintPage Event (System.Drawing.Printing) | Microsoft Docs[^] which includes a basic example.
 
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