Hi
I have an invoice application. Can anyone tell me how to send the div through email as an attachment. Can we convert or export the div to pdf
thanks
Fareeda Hussain
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 30, 2015, 12:22 AM EDT
Lucky Laxman92 reputationPosted May 30, 2015, 1:19 AM EDT
This is a Pringting
This is a Pringting
This is a Pringting
var divContents = $("#Printdiv").html();
var printWindow = window.open('', '', 'height=400,width=800');
printWindow.document.write('
printWindow.document.write('');
printWindow.document.write(divContents);
printWindow.document.write('');
printWindow.document.close();
printWindow.print();
});