|
<EjsButton OnClick="PdfExport" Content="Pdf Export"></EjsButton>
<EjsGrid @ref="DefaultGrid" DataSource="@Orders" AllowSorting="true" AllowPdfExport="true" AllowPaging="true">
. . . .
</EjsGrid>
@functions{
. . . . . .. .
public void PdfExport()
{
PdfExportProperties ExportProperties = new PdfExportProperties();
PdfTheme Theme = new PdfTheme();
PdfThemeStyle RecordThemeStyle = new PdfThemeStyle()
{
FontColor = "#64FA50",
FontName = "Calibri",
FontSize = 17,
Font = new PdfGridFont() { IsTrueType=true, FontFamily = /*you fonts famiy in form of base64string*/ }
};
Theme.Record = RecordThemeStyle;
ExportProperties.Theme = Theme;
this.DefaultGrid.PdfExport(ExportProperties);
}
}
|