tags:

views:

73

answers:

3

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?

+1  A: 

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.

Am
HelloI think you got my problem correctly. Now I am going to try it.Thanks.
Barun
A: 

Have you considered a standard reporting tool, this will have a visual interface to help lay things out?

Mark Redman
No I cant use those. Because I need to dynamically change my printing points. Oh I forget to mention that my customer can set his printing points location dynamically.Thanks.
Barun
A: 

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".

Merl