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

Export to new version of excel

4 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
york
Top achievements
Rank 1
york asked on 05 Nov 2011, 09:36 PM
Hi,
I try to export radgrid to excel with RadGrid1.MasterTableView.ExportToExcel(). I am using MS office 2010. Before excel is opened, it always popups a warning that says the file format is not correct. It seems that ExportToExcel() creates a .xls file, while excel 2010 default is .xlsx file. I wonder if there is way for ExportToExcel() to generate a .xls file. Thanks.

4 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Nov 2011, 04:32 AM
Hello York,

I tried the same in the latest version 2011, 2, 712, 35. Try setting the Excel-FileExtension as shown below.

aspx:
<ExportSettings Excel-FileExtension=".xls" ExportOnlyData="true"></ExportSettings>

Thanks,
Shinu.
0
york
Top achievements
Rank 1
answered on 20 Dec 2011, 11:59 PM
Hi Shinu,

I am using Telerik version 2010..., and can not find Excel-fileExtension in ExportSettings. Is it a new property?

Thanks,
York
0
Shinu
Top achievements
Rank 2
answered on 21 Dec 2011, 05:38 AM
Hello York,

Try upgrading to the latest version.
Updating RadControls for ASP.NET AJAX to another version or license

-Shinu.
0
york
Top achievements
Rank 1
answered on 21 Dec 2011, 07:15 AM
Is it free? Thanks
Tags
Grid
Asked by
york
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
york
Top achievements
Rank 1
Share this question
or