This sample demonstrates client-side exporting of the Gantt, which allows you to export Gantt data to Excel, PDF and CSV formats. Using the Gantt toolbar buttons, you can export Gantt data to the desired format.
Gantt supports client-side exporting, which allows you to export its data to the Excel, PDF and CSV formats.
In this demo, we have defined actions in the toolbarClick event to export the Gantt data using the excelExport, pdfExport and csvExport methods.
Injecting Module:
To use Excel and CSV export features, we need to inject
excelExport
module into the services
.
To use PDF export feature, we need to inject
pdfExport
module into the services
.