how to create export pdf and PNG to gantt chart
The Gantt chart in this tutorial is based on the Scheduler control (it's the Scheduler controls switch to Gantt using ViewType="Gantt").
That means you can export the Scheduler to PNG using Export() method:
You can also export it to PDF:
How do you export the Gantt control?