Export GridView to Excel (xlsx, Excel 2007 Format)

W

walter

Hi
I have my application running in Windows 2000 and uses Office 2000.
Below is the code wrriten to export excel file
Response.ContentType = "application/vnd.ms-excel"
If i try to run the same code in VISTA or XP Machine which uses Office 2007.
I am getting below error.
"The format not supported ... " what it could be the cause and how to
resolve this.
Irrespective of Windows 2000 (Office 2000) , VISTA (Office 2007) or
XP(Office 2007).
Do i need to write any specific code for each OS i use or a single code
which can fix my problem.

Kindly help in this

Thanks
Mwalter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top