Hi friends,
I created one custom button on dashboard ribbon, client requirement: user will come and select any dashboard(ex: sales dashboard, sales activity dashboard, etc) and user click on the custom button, then that particular dashboard should be converted into pdf and attach that pdf in desktop outlook application. I tried using jsPDF and I tried passing dashboard div ids in the code, but it is generation empty PDF. Any suggestions?
Thanks,
Bharath
code
===================================
function printPdf(){
var doc = new jsPDF();
doc.fromHTML(document.getElementById('mainTable'), 15, 15, {
'width': 170
});
doc.save('Test.pdf');
}
with the help of this code, it is generating empty pdf file. I added jquery library and JSPDF library as well in my button command.
*This post is locked for comments
Hi Gunti Bharath Kumar,
You cannot do this directly, but an alternative solution is to create a SQL Server Reporting Services (SSRS) report that matches the information of your dashboard, and export the SSRS report as a PDF file. You will then be able to attach the generated PDF file to an Outlook email.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6