Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I trying to develop a bill system but am unable to complete due to problem in generation of my report. The report must have a max of 10 particulars and the remaining is carried over to the next page and also at the end of every page the total has to be displayed. This is how the bill should like...


Slno Qty Particulars Rate Amount
1 2 Chicken Chow 100 200
.
.
.
.
10 3 ice cream 50 150
Total 350


Continuation of the bill in the next page…

Slno Qty Particulars Rate Amount
b/f 350
11 4 Biryani 100 400
.
.
.
15 2 Pepsi 30 60
Total Rs. 810
VAT Rs. 110
Net Rs. 920

It should also be noted that at the last page of the bill the total, VAT and NET amount has to be included...

I need the solution urgently... Thank you for your precious time and your help in advance... Have a great day...
Posted

1 solution

You need to generate the report yourself using the PrintDocument[^] class, and using the GDI+ API.

Hope this helps
 
Share this answer
 
Comments
Bennet Ryan 12-Aug-11 5:04am    
I'm not so experienced in C#.net, i would be very grateful is you could tell me how to go about it in detail... Thanks for your help...
Wayne Gaylard 12-Aug-11 5:14am    
Well, I suggest you go through the example provided on the page I showed you. There is another link on that page that shows how to print multi page documents. Unfortunately, it would require a full on article to cover all of this, which is not appropriate in a Quick Answers forum, not forgetting the fact that I have a job to do as well. I recommend you take a day or so to familiarise yourself with this as you will likely use this class in almost all apps you write that require printing done.

Good Luck and remember that learning something new is really the fun part of this job.
Bennet Ryan 12-Aug-11 5:17am    
Thank you for your time, i read it up and try to come out successfully.

Have a great day.

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