0

i am developing an ERP. i have html invoice and need as email. The question is constructing invoice in jquery & ajax, i need to convert PDF and mail that invoice, please help me regarding this!!

1 Answers1

2

You probably need to concentrate on one item at a time. This is just a head start of your requirement.

  1. Build the Invoice : Integrate an editor just like this or you can get from CkEditer(If want your user to change the content/design)
  2. Generate the PDF : Grab the html from the Editer and send that to create the PDF (you can use itextSharp or EO.PDf

    //Code to convert an Url or HTML file to PDF. The following code writes output to a file. You can //also write output to a Stream, a PdfPage, or a PdfDocument object HtmlToPdf.ConvertUrl(urlOrHtmlFile, outputFileName);

  3. Attach the generated PDF, and Email. Email with Attachment

Check and change your spec as required. Ask Questions with specific scenario on SO to get help on that.

Community
  • 1
  • 1
sudhansu63
  • 6,025
  • 4
  • 39
  • 52