Presently I am having a problem with printing in C#. I have a pre-printed bill, and I need to print values into some specific points of that bill.
Any suggestions?
Presently I am having a problem with printing in C#. I have a pre-printed bill, and I need to print values into some specific points of that bill.
Any suggestions?
If I understood your need correctly, you can create a PDF file using iTextSharp with the proper values in the specific locations you need, and then print it on your pre-print bill.
You can also try using the XPS documents, there are some good controls to help you accomplish this task.
If your going the iTextSharp way, the SetAbsolutePosition
function is your friend. See the documentation on how to absolute positioning of elements in the PDF file.
Have you considered a standard reporting tool, this will have a visual interface to help lay things out?
As the variant (example for FastReport.net) create for preview full report (your bill), but for some of objects set "Printable = false". So you will receive to printer only objects (your values) with "Printable = true".