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

RadGrid export

0 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sofiene
Top achievements
Rank 1
Sofiene asked on 10 Sep 2012, 08:21 AM
Hi ,
i am using a telerik radGrid and i invoke the exportExcel fonctionality  , when exporting i catch the event and i try to saving the result excel file in my disq , My problem is in using french caracter ( é , à , ... ) in grid column title who make chines carracter in my excel file . 

protected void GridPJ_GridExporting(object source, GridExportingArgs e)
{
 
 
    string path = ((CImport)Session["CImport"]).sFileExcel;
         
        
 
    using (FileStream fs = File.Create(path))
     
    {
       Byte[] info = System.Text.Encoding.Default.GetBytes(e.ExportOutput);
        fs.Write(info, 0, info.Length);
 
         
    }
    Session["Export"] = true;
    Response.Redirect(Request.Url.ToString());
 
}



thank's for reply . 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Sofiene
Top achievements
Rank 1
Share this question
or