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

Export to excel

3 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jamal Husien
Top achievements
Rank 1
Jamal Husien asked on 13 May 2010, 11:55 AM
hi
i need to export to excell for the datagrid
i use the same way from your example
i have problem with exporting hebrew language.

 

if (dialog.ShowDialog() == true)

 

{

 

using (Stream stream = dialog.OpenFile())

 

{

radGridView_searchResult.Export(stream,

 

new GridViewExportOptions()

 

{

Format = format,

ShowColumnHeaders =

true,

 

 

ShowColumnFooters = true,

 

ShowGroupFooters =

true,

 

Encoding =

Encoding.GetEncoding("windows-1255"),

 

});

 

}

}

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 May 2010, 12:34 PM
Hi,

Can you try Encoding.UTF8 instead?

Sincerely yours,
Vlad
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
Jamal Husien
Top achievements
Rank 1
answered on 16 May 2010, 05:23 PM
i also try iy it is not working
0
Yavor Georgiev
Telerik team
answered on 17 May 2010, 02:03 PM
Hi Jamal Husien,

 Please find attached a sample that uses the UTF8 encoding to export a hebrew string (copied from the Google Translate website) to an Excel file.

I hope this helps you.

All the best,
Yavor Georgiev
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.
Tags
GridView
Asked by
Jamal Husien
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jamal Husien
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Share this question
or