Nipun
Nipun

Reputation: 1485

Invoice printout

I am working on a application in .net.I want to do all calculation and then to print all the information of the selected items on a given page of the company and then to take the print of that page and also to save the same page in DB and send invoice to the client through email in .pdf. Please suggest.?

Upvotes: 0

Views: 435

Answers (4)

David Gatti
David Gatti

Reputation: 3701

Not sure if this is to late to the game, but this website Simpeli have some nice templates to choose from for generating good looking PDFs.

You make a PDF with a very simple API call.

Upvotes: 1

kenny
kenny

Reputation: 22334

I would generate and store XML and have XSLT conversions to PDF, HTML, etc... consider this previous post.

A quick google for 'c# xml xslt pdf', gave me this link which may be helpful.

Upvotes: 0

TheVillageIdiot
TheVillageIdiot

Reputation: 40507

You can use RDLC to define report. It can export it to PDF/Excel. You can export report to pdf and attach it to send email using System.Net.Mail.MailMessage class. You can also print the report using Report Viewer tool.

Alternately you can also use Crystal Reports bundled with visual studio.

Upvotes: 0

Stephan Keller
Stephan Keller

Reputation: 1633

If you can spend some money on a report generator tool, have a look at the Xtra Reports from DevExpress: Link. This can export to pdf. Then I would take the generated file and store it (or a reference to it) in the database. For actually sending the mail you could use the MailMessage-Class in System.Net.Mail

Upvotes: 0

Related Questions