Hello,
I am currently working on a project where I was exporting the Gantt View. For viewport/full area, it is working fine, but when I use the range area, the image is not downloading.
I also implemented the pdf export where I used the "range" for exporting each month on each page, it worked fine.
Only the download option is not working, getting the error in the attachments.
The plannedStartDate and plannedEndDate are between the Gantt start and end.
Used this code for export:
private exportRangeView(typeOfExport: "svg" | "png" | "jpeg"){
const options = {
area: "range",
dateFrom: new DayPilot.Date(this.state.PlannedStartDate, true),
dateTo: new DayPilot.Date(this.state.PlannedEndDate, true),
}
const image = this.dp.exportAs(typeOfExport, options )
image.download(`Dev-range.${typeOfExport}`)
}