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

RadGrid Export Problem in IE6

5 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Von Aerich
Top achievements
Rank 1
Von Aerich asked on 09 Feb 2009, 10:07 AM
Hi Telerik Team,

I am having a problem with the export feature of RadGrid. Whenever I export my radgrid data to excel in IE6, an error occurs.
Error message: 'C:\Documents and Settings\Von\Local Settings\Temporary Internet Files\Content.IE5\VMOJZLKL\Employee Record Report[1].xls' could not be found. Check the spelling of the file name, and verify that the file location is correct. If you are trying to open the file from your list of most recently used files, make sure that the file has not been renamed, moved, or deleted.

The bigger problem is whenever I try this feature using Firefox, it works perfectly.

Here is my code:
protected void btnExport_Click(object sender, EventArgs e)
    {
        grdEmployeeInfo.Page.Response.ClearHeaders();
        grdEmployeeInfo.Page.Response.Cache.SetCacheability(HttpCacheability.Private);
        grdEmployeeInfo.MasterTableView.ExportToExcel();
    }

May I request some help with this?
Thanks a lot!

Regards,
Von



5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Feb 2009, 02:55 PM
Hi Von,

Please try to reproduce this using our online example and let us know about the result.

Sincerely yours,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Von Aerich
Top achievements
Rank 1
answered on 11 Feb 2009, 06:50 AM
Hi Vlad,

Thanks for the prompt reply.
I have tried your online examples and it worked perfectly.
Maybe it has something to do with masterpages? or caching?

Regards,
Von

0
Von Aerich
Top achievements
Rank 1
answered on 11 Feb 2009, 06:57 AM
Another problem is when I upload my project to our server, it also displays errors if I do exports on IE.

Here is the error message:
Microsoft Office Excel cannot access the file 'https://www.mytec.com/ReportPage.aspx'.
There are several possible reasons:
  • The file name or path does not exist.
  • The file is being used by another program
  • The workbook you are trying to save has the same name as a currently open workbook.

Still happens only in IE, and with the same code as what I posted above.
Any suggestions?

Thanks!

Von
0
Pavel
Telerik team
answered on 16 Feb 2009, 07:40 AM
Hi Von,

Unfortunately the provided information is not sufficient to determine what is causing this error. It might  be helpful if you provide us with a runnable sample (via a formal support ticket) which illustrates the problem.

Regards,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Brendan Vogt
Top achievements
Rank 1
answered on 26 Mar 2009, 09:19 AM
Hey,

What did you do to solve the problem?  I have the same issue that you are having.

Thanks
Brendan
Tags
Grid
Asked by
Von Aerich
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Von Aerich
Top achievements
Rank 1
Pavel
Telerik team
Brendan Vogt
Top achievements
Rank 1
Share this question
or