private void button1_Click(object sender, EventArgs e)
{
var options = new PdfExportingOptions();
options.Exporting += Options_Exporting;
var document = sfDataGrid1.ExportToPdf(sfDataGrid1.View, options);
document.Save("Sample.pdf");
System.Diagnostics.Process.Start(@"Sample.pdf");
}
private void Options_Exporting(object sender, Syncfusion.WinForms.DataGridConverter.Events.DataGridPdfExportingEventArgs e)
{
PdfCjkStandardFont cjkFont = new PdfCjkStandardFont(PdfCjkFontFamily.HanyangSystemsShinMyeongJoMedium, 8, PdfFontStyle.Regular);
e.CellStyle.Font = cjkFont;
} |
Perfectly solved.
Thank you sincerely.
Regards,
Ki Hun.