Our state of the art Gantt chart


Post by naveen12 »

I am using Gantt I want export pdf

 features: {

    pdfExport : {

      exportServer: 'http://localhost:4250', //Print server

    },},
    tbar : {
     {

      type: 'button',

      ref: 'exportButton',

      icon: 'b-fa-file-export',

      text: 'Export to PDF',

      onAction : async () =>{

        this.gantt.zoomToFit({ //onZoomToFitClick

          leftMargin: 50,

          rightMargin: 50

      });

        this.gantt.features.pdfExport.showExportDialog();

      }

    }
    }

when I click export to pdf ExportDialog box was opened the I clicked on Export button this server error came "POST http://localhost:4250/ 404 (Not Found)" pls provide correct examble for export to pdf. (Is that any other library need for export to pdf )


Post by naveen12 »

Could u pls respond for the above error


Post by Maxim Gorkovsky »

Hello.
404 suggests your pdf server is unreachable. Make sure you use correct server address.


Post Reply