Hi All,
I have a radgrid, I set the <MasterTableView Font-Names="Gill Sans MT" >. I also set the style as
<style type="text/css">
.rgMasterTable
{
font-family: Gill Sans MT !important;
}
</style>
in web browser my Grid is showing the correct font (Gill Sans MT) and export to excel also showing correct font. But when I export it to pdf, it is not exporting in the Gill Sans MT font. I also tried to set the
<ExportSettings>
<Pdf DefaultFontFamily="Gill Sans MT" />
</ExportSettings>
But still no luck. then I tried from code-behind as
protected void btnpdfCard_Click(object sender, ImageClickEventArgs e)
{
foreach (GridDataItem item in rgExportGrid.Items)
{
item.Style["font-family"] = "Gill Sans MT";
item.Style["font-size"] = "6px";
}
rgExportGrid.MasterTableView.ExportToPdf();
}
but still no luck to export with Gill Sans MT font. Can anyone let me know where I am wrong?
Thanks in advance.
I have a radgrid, I set the <MasterTableView Font-Names="Gill Sans MT" >. I also set the style as
<style type="text/css">
.rgMasterTable
{
font-family: Gill Sans MT !important;
}
</style>
in web browser my Grid is showing the correct font (Gill Sans MT) and export to excel also showing correct font. But when I export it to pdf, it is not exporting in the Gill Sans MT font. I also tried to set the
<ExportSettings>
<Pdf DefaultFontFamily="Gill Sans MT" />
</ExportSettings>
But still no luck. then I tried from code-behind as
protected void btnpdfCard_Click(object sender, ImageClickEventArgs e)
{
foreach (GridDataItem item in rgExportGrid.Items)
{
item.Style["font-family"] = "Gill Sans MT";
item.Style["font-size"] = "6px";
}
rgExportGrid.MasterTableView.ExportToPdf();
}
but still no luck to export with Gill Sans MT font. Can anyone let me know where I am wrong?
Thanks in advance.