Forums
Exporting whole data grids in pdf as a table format - 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 (https://bdn.bdb.ai/forumdisplay.php?fid=29)
+---- Thread: Exporting whole data grids in pdf as a table format (/showthread.php?tid=409)



Exporting whole data grids in pdf as a table format - ArghaPratim - 12-23-2022

var comp = sdk.getWidget( 'datagrid1' );
comp.m_exporttopdfgrid.exportastable = true; // (if false, it will be exported as image in pdf)
comp.m_exporttopdfgrid.theme = "striped"; // ('striped', 'grid' or 'plain')
comp.m_exporttopdfgrid.orientation = "l"; // ( l for landscape and p for portrait mode )