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

ExportToExcel with ExcelML and file name issue

4 Answers 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DIT
Top achievements
Rank 1
DIT asked on 01 Dec 2011, 02:21 PM
Hi,

I was working on Exporting RADGrid data to Excel using ExcelML approach. While exporting I have given and want following name (IncomeStatement_MSFT_xNAS) to the file. I have set this using RadGridFS.ExportSettings.FileName property.

Most of the times, exported file has correct name but randomly it start appending garbage character to it. Given below are different names with random garbage characters appended by grid exporter:
IncomeStatement_MSFT_xNASCAN3IT2H
IncomeStatement_MSFT_xNASCAJPY7HM

What could be the issue? Any help/fix?

Thanks in anticipation.

4 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 01 Dec 2011, 03:15 PM
Hello,

protected void RadGrid1_PreRender(object sender, EventArgs e)
       {
           RadGrid1.ExportSettings.FileName = "Your text " + new Random().Next();
       }


Thanks,
Jayesh Goyani
0
Daniel
Telerik team
answered on 01 Dec 2011, 04:46 PM
Hello DIT,

Could you please see if the problem exists when exporting from a different browser?

Thanks,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
DIT
Top achievements
Rank 1
answered on 02 Dec 2011, 10:31 AM
Hi,

It's happening in IE 8. Tested with FireFox and things are working fine there.
What to do?

Thanks.
0
Accepted
Daniel
Telerik team
answered on 05 Dec 2011, 02:04 PM
Hello Dit,

My assumption is that this happens because there is already a file with such name in the folder where IE saves the downloaded files.

Kind regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
DIT
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Daniel
Telerik team
DIT
Top achievements
Rank 1
Share this question
or