This is a migrated thread and some comments may be shown as answers.

Excell Export font name

2 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pouya ir
Top achievements
Rank 1
Pouya ir asked on 25 May 2010, 07:54 PM
hi

how change excel export font name.
i want change font to "tahoma" .   tahoma is windows recommended  for Persian language.


2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 25 May 2010, 09:42 PM
Hello Pouya,

Give this code-snippet a try:
protected void RadGrid1_ExcelExportCellFormatting(object source, ExcelExportCellFormattingEventArgs e)
{
    e.Cell.Style.Add("font-family", "Tahoma");
    e.Cell.Style.Add("font-size", "14pt");
}

Word/Excel export (HTML-based)

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Pouya ir
Top achievements
Rank 1
answered on 26 May 2010, 06:29 PM
tnx telerik.

i have a lot of grid in my project . and all of them have Excell export feature.

i any solution to fix all ! ?
Tags
Grid
Asked by
Pouya ir
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Pouya ir
Top achievements
Rank 1
Share this question
or