You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/gantt-chart/pdf-export.md
+10-23Lines changed: 10 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -480,10 +480,11 @@ The following code demonstrates how to change the page size to A4 for the export
480
480
481
481
### Export current view records
482
482
483
-
The PDF export functionality allows you to export records are in current view of the Gantt chart to the PDF documentby setting the [IsCurrentViewExport](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs_IsCurrentViewExport) argument in the [PdfExporting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfExporting) event to true, using the [PdfExportEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs) class.
483
+
The PDF export functionality allows you to export only the records that are currently in view on the Gantt chart to a PDF document. This can be achieved by enabling the [IsCurrentViewExport](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs_IsCurrentViewExport)boolean argument in the [PdfExporting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfExporting) event.
484
484
485
-
The following code demonstrates how to use the `PdfExporting` event to export current view data of the Gantt chart to a PDF document,
485
+
N> Exporting current view records is only applicable when the virtualization feature is enabled, and it does not retain the state of collapsed rows during export.
486
486
487
+
The following code demonstrates how to use the `PdfExporting` event to export current view data of the Gantt chart to a PDF document,
487
488
```cshtml
488
489
@using Syncfusion.Blazor.Gantt
489
490
@using Syncfusion.Blazor.Navigations
@@ -591,7 +592,7 @@ The following code demonstrates how to use the `PdfExporting` event to export cu
591
592
```
592
593
### How to export Gantt chart with custom timeline range
593
594
594
-
The PDF export functionality allows you to export a custom timeline range of the Gantt chart to the PDF document. To specify the range, set the [RangeStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs_RangeStart) and [RangeEnd](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs_RangeEnd) arguments within the [PdfExporting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfExporting) event. The `RangeStart` argument defines the start date, and the `RangeEnd` argument defines the end date of the timeline range. Both arguments are part of the [PdfExportEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs) class used in the `PdfExporting` event.
595
+
The PDF export functionality allows you to export with custom timeline range of the Gantt chart to the PDF document. To specify the range, set the [RangeStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs_RangeStart) and [RangeEnd](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs_RangeEnd) arguments within the [PdfExporting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfExporting) event. The `RangeStart` argument defines the start date, and the `RangeEnd` argument defines the end date of the timeline range. Both arguments are part of the [PdfExportEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.PdfExportEventArgs.html#Syncfusion_Blazor_Gantt_PdfExportEventArgs) class used in the `PdfExporting` event.
595
596
596
597
The following code demonstrates how to use the `RangeStart` and `RangeEnd` arguments of the PdfExportEventArgs class within the PdfExporting event to export a custom timeline range of the Gantt chart to a PDF document,
597
598
@@ -1214,23 +1215,9 @@ The following code snippet demonstrates how to use the `PdfQueryTaskbarInfo` eve
1214
1215
1215
1216
When exporting the Gantt chart to a PDF document, a series of events are triggered in a specific order, allowing for advanced customization of the export process. Understanding this flow is essential to control and modify the exported content effectively. Below is the flow of events that occur during PDF export in the Gantt chart:
1216
1217
1217
-
* PdfExporting
1218
-
* PdfQueryTimelineCellInfo
1219
-
* PdfColumnHeaderQueryCellInfo
1220
-
* PdfQueryCellInfo
1221
-
* PdfQueryTaskbarInfo
1222
-
* PdfExported
1223
-
1224
-
The [PdfExporting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfExporting) event is triggered first, just before the export process begins. This event provides an opportunity to cancel the export or configure initial export settings, such as the timeline range, column selection, or any other export properties. By handling this event, you can customize the overall export configuration.
1225
-
1226
-
After the export process is initiated, the [PdfQueryTimelineCellInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfQueryTimelineCellInfo) event is triggered. This event is invoked each time a timeline cell is drawn on the exported PDF document. You can handle this event to customize how individual timeline cells are rendered, including adding images, background colors, or custom text to the timeline cells.
1227
-
1228
-
The third event, [PdfColumnHeaderQueryCellInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfColumnHeaderQueryCellInfo), is triggered when the column headers are being drawn in the PDF export. This event allows you to modify the appearance of column headers in the exported document, including the addition of images, background colors, and custom text.
1229
-
1230
-
After the column headers are rendered, the [PdfQueryCellInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfQueryCellInfo) event is triggered. This event handles the rendering of individual Gantt chart cells in the PDF document. You can use this event to customize each cell, including altering its background color, adding images, or modifying the text.
1231
-
1232
-
After the cells are rendered the [PdfQueryTaskbarInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfQueryTaskbarInfo) event is triggered as taskbars are drawn, offering the flexibility to customize the appearance of parent and individual taskbars, including milestone templates, to meet project needs.
1233
-
1234
-
After the Gantt chart has been fully exported to a PDF document, the [PdfExported](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfExported) event is triggered. This event provides details of the completed export, such as the file name, exported columns, and the timeline range. You can use this event to perform any final actions or log export details.
1235
-
1236
-
For more details and examples, see the Gantt chart PDF export events in the [documentation](https://blazor.syncfusion.com/documentation/gantt-chart/events).
Copy file name to clipboardExpand all lines: blazor/gantt-chart/template-pdf-export.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The Gantt chart export functionality allows you to export both column and header
14
14
15
15
## Exporting with column header template
16
16
17
-
The PDF export functionality allows for advanced customization of Gantt chart columns header, including the inclusion of images, background colors, and custom text. This can be achieved using the [PdfColumnHeaderQueryCellInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfColumnHeaderQueryCellInfo) event. By handling this event, you can define how each column header in the Gantt chart is rendered in the exported PDF.
17
+
The PDF export functionality allows for customization of Gantt chart columns header, including the inclusion of images, background colors, and custom text. This can be achieved using the [PdfColumnHeaderQueryCellInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfColumnHeaderQueryCellInfo) event. By handling this event, you can define how each column header in the Gantt chart is rendered in the exported PDF.
18
18
19
19
The following code snippet demonstrates how to use the `PdfColumnHeaderQueryCellInfo` event to export Gantt columns header with custom text and image on the task name column header,
0 commit comments