Hi Syncfusion Team,
I was trying to implement the Export to Excel feature of the Gantt chart component, but the operation does not work. Instead, it produces the exception message below.
I did a quick debug but the Gantt object is not null nor the ExportProperties object.
One thing to note is that I'm not using the toolbar click event to trigger the Export operation but rather on a simple button click. I'm not sure how much of an impact that entails but we are not using the Gantt chart's toolbar generally.
Please advise as to how to resolve this issue. I'm attaching the razor page file where I'm experiencing the issue.
Many thanks!
Denzel
|
<SfGantt @ref="Gantt"
DataSource="@TaskCollection"
ProjectStartDate="@ProjectStart"
ProjectEndDate="@ProjectEnd"
GridLines="Syncfusion.Blazor.Gantt.GridLine.Both"
Height="600px"
TaskMode="ScheduleMode.Manual"
AllowExcelExport="true"
AllowUnscheduledTasks="true"
AllowFiltering="true">
|
Hi Monisha,
Thank you! I missed the AllowExcelExport property from the article as they have emphasized the ExportToExcelAsync() method more.
Anyway, the export function is now working on my end as well. Thank you for pointing out what I'm missing in code.
Best regards,
Denzel