|
public async Task ToolbarClick(Syncfusion.Blazor.Navigations.ClickEventArgs args)
{
PdfExportProperties ExportProperties = new PdfExportProperties();
ExportProperties.FileName = "text.pdf";
ExportProperties.ExportType = ExportType.AllPages;
PdfTheme Theme = new PdfTheme();
PdfBorder HeaderBorder = new PdfBorder();
HeaderBorder.Color = "#64FA50";
PdfThemeStyle HeaderThemeStyle = new PdfThemeStyle()
{
Font = new PdfGridFont { IsTrueType = true, FontSize = 8, FontFamily = "T1RUTwA..." },
FontColor = "#64FA50",
FontName = "Calibri",
FontSize = 17,
Bold = true,
Border = HeaderBorder
};
Theme.Header = HeaderThemeStyle;
PdfThemeStyle RecordThemeStyle = new PdfThemeStyle()
{
Font = new PdfGridFont { IsTrueType = true, FontSize = 8, FontFamily = "T1RUTwALAI..." },
FontColor = "#64FA50",
FontName = "Calibri",
FontSize = 17
};
Theme.Record = RecordThemeStyle;
PdfThemeStyle CaptionThemeStyle = new PdfThemeStyle()
{
Font = new PdfGridFont { IsTrueType = true, FontSize = 8, FontFamily = "T1RUT...ABQ=" },
FontColor = "#64FA50",
FontName = "Calibri",
FontSize = 17,
Bold = true
};
Theme.Caption = CaptionThemeStyle;
ExportProperties.Theme = Theme;
await this.grid.PdfExport(ExportProperties);
}
|