mkiran
#1
Export to PDF/Excel/MSProject features are not working. Getting following two issues
`Uncaught ReferenceError: gantt is not defined
at api.js:31
at api.js:584
core.js:5828 ERROR TypeError: dhtmlx_gantt__WEBPACK_IMPORTED_MODULE_2__.gantt.exportToPDF is not a function`
Am using Angular 9 & Gantt 7.1.5
Please help me to resolve this error.
ramil
#2
Hello Kiran,
You need to add the export’s api.js
file into the folder with the Gantt component. Then you need to import that file.
Here is an Angular 9 demo:
https://files.dhtmlx.com/30d/97f9408ca0d5b84902b03589b45ecd04/angular9+export.zip
1 Like
mkiran
#3
Thanks @ramil, it is working as expected.