Print invoice via C # .net window application

I have encoded one billing software. Now I want to print this invoice in a specific format. I read the printDocument and printDialog tools for it. But I have to specify the position of the x and y axis for each line or line that we draw in printdocument.

Is there any tool like a GUI so that I can format all the fields of the account in my position and just transfer data from the backend, so every time it prints the same account with a different value that I transmit.

Can anyone suggest me where to start.

+4
source share
2 answers

If I had to do it from scratch without any other tools, I would use HTML (maybe you have access to other tools, crystal reports or SSRS, which would be easier). HTML is specifically designed for layout design, and .NET provides great support for HTML. (Although I have not researched it recently, I’m sure there are tools to display the HTML in the application and send it to the printer.)

HTML as XML can be templated, or you can use many of the existing tools (see Mustache, etc.). .NET has built-in templates, but some of the tools available are more enjoyable.

+1
source

You can use localreport (rdlc). check this article for draft code:

Microsoft Reporting Without SQL Server Reporting Services

Microsoft Reporting Services - Part II

0
source

All Articles