Forums
Script to export dashboard as pdf - Printable Version

+- Forums (https://bdn.bdb.ai)
+-- Forum: BDB Knowledge Base (https://bdn.bdb.ai/forumdisplay.php?fid=13)
+--- Forum: BDB Dashboards Designer (https://bdn.bdb.ai/forumdisplay.php?fid=43)
+---- Forum: BDB Designer Q & A (https://bdn.bdb.ai/forumdisplay.php?fid=16)
+---- Thread: Script to export dashboard as pdf (/showthread.php?tid=606)



Script to export dashboard as pdf - shreekantgosavi - 12-23-2022

Use it on any label/image

sdk.getWidget('label_AG').m_scrnshotorientation = "P";
sdk.getWidget( 'label_AG' ).m_loadermessage = "<span style ='color:#000;font-size:32px; font-weight: normal; font-family: BizvizFont''>Export in progress </span><br> <span style = 'color:#000;font-size:16px; font-weight: normal; font-family: BizvizFont; align=center'>Please wait while the PDF is prepared for export </span>";
sdk.getWidget( 'label_AG').m_scrnshotfilename = "Sales Overview";
sdk.getWidget( 'label_AG').setCustomExportPdf([
['box83','datagrid87','map64','image2','image8','image9','image10','image11','image33','image68','image89','image87','image74','label3','label12','label13','label14','label15','label16','label17','label18','label19','label22','label23','label28']
]);