aspnet-js-aspxclientgantt-dot-exporttopdf-x28-options-x29.md
Exports Gantt chart data to a PDF document.
ExportToPdf(
options: any
): any
| Name | Type | Description |
|---|---|---|
| options | any |
PDF export options.
|
| Type | Description |
|---|---|
| any |
The PDF document.
|
The ExportToPdf method allows you to save information about the Gantt chart’s layout, appearance, and tasks. This method supports the following options:
Run Demo: ASPxGantt - Export to PDF Run Demo: MVCxGantt - Export to PDF
<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" >
//...
</dx:ASPxGantt>
var myfont = 'AAEAAAAS...';
var exportOptions = {
format: "A4",
landscape: true,
exportMode: "chart",
dateRange: "visible",
font: {
fontObject: myfont,
name: 'Roboto-BoldItalic',
}
};
clientGantt.ExportToPdf(exportOptions);
See Also