search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to export Gantt chart view in png/svg/pdf in 2022.4.5483 version.

Asked by Bikram Jeet Singh
1 year ago.

Hello,

I was able to export the svg and png, but the exported image is not proper, getting the appended html with the png.

I used this function to export:
(this.dp as any).exportAs("SVG", { area: "viewport"}).download()

Answer posted by Dan Letecky [DayPilot]
1 year ago.

The latest release now supports export customization events in the Gantt Chart component as well (https://javascript.daypilot.org/daypilot-pro-for-javascript-2023-1-5529/).

You can use onBeforeRowHeaderExport to customize the row headers (args.columns[].text):
https://api.daypilot.org/daypilot-gantt-onbeforerowheaderexport/

An onBeforeTaskExport to customize the box text (e.g. args.textRight):
https://api.daypilot.org/daypilot-gantt-onbeforetaskexport/

There is a new Gantt chart export tutorial in the works that will include and example - I'll keep you updated.

Comment posted by Anonymous
1 year ago.

Thank you very much for your help ;)

Comment posted by Bikram Jeet Singh
1 year ago.

Thank you

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.