Hello,
There are 2 versions of Gantt:
- Gantt that you can only run inside the browser. You can add it to an HTML page or use it in React, Angular, Vue.
- Gantt for node.js that you can only run on the server.
Both versions themselves cannot convert the data to MS Project or PDF files.
To use the import and export functionality, you need to connect the export’s api.js
file:
https://docs.dhtmlx.com/gantt/desktop__export_msproject.html
http://export.dhtmlx.com/gantt/api.js
This file has functions that depend on the browser, so, it won’t work in the node.js environment out of the box.
I tried to modify the code in the file, but it seems that some internal Gantt methods would require the browser functions. I will let the dev team know about it, but I cannot give you any ETA on when it is going to be fixed.
You can manually send the request to the export server, but you need to send it in a specific format. Unfortunately, we don’t have ready guides on how to do that.
However, if you have the PDF export module, which is a node.js application and you want to export the data using your server, the PDF export module doesn’t have that functionality. For that purpose, you need to use the MSP Export module that can only run on the Windows platform.