Hi,
I am exporting a grid using "UltraWebGridExporter" it is now opening in a file extension .XLS. I need to open the excel file in .XLSX file format.
How can I do this?
-Thank you.
You can set the WorkbookFormat on a newly constructed Workbook immediately before calling the Export method:
Workbook wb = new Workbook();wb.SetCurrentFormat( WorkbookFormat.Excel2007);this.WebGridExcelExporter1.Export( this.WebGrid1, wb);
This is supported in 8.3 and later (please see this thread for precise details).
Cheers,
I tried with this code. This works when no "downloadname" is set. And it takes the default downlaod name(Untitled).
If I set any "Downloadname" means it doesn't work.
Need your suggestion.
Thanks.