I pretend use dhtmlx to import a msproject file. My projects is in angular 7 and I am using the dhtmlx-gantt npm package to use gantt.
So I need use gantt.importFromMSProject to import project file. but I receive the error: importFromMsProject is not a function.
Hello everyone,
To export the data, you need to connect the api.js file to use the import and export functions: https://export.dhtmlx.com/gantt/api.js
As Joubin said, you need to put that file in your project and add import "path to the api.js file". If you put it near the gantt.component.ts file, the import function will look this way:
the export function works while calling it from my html file and downloads PDF/XML/JPG files of my gantt chart, but when I want to specify something for the function and try to do that in my TS file, i get the error: exportToMsProject is not a function.
also for import from MPP files, same error: importFromMsProject is not a function
Is there a solution to this? Please tell me if you need further info regarding my issue…