PC Review


Reply
Thread Tools Rate Thread

asp.net html export to excel - error

 
 
=?Utf-8?B?RGF2aWQgSw==?=
Guest
Posts: n/a
 
      3rd Aug 2007
Before Excel 2007, a common way to export data to excel from an ASP.Net
applicaiton was to get a DataGrid - get it as HTML - and send it via
ResponseType to Excel.

Excel would interpret the HTML tables and show the data.

With Excel 2007, users are now getting a new warning:
"The file you are trying to open, 'filename.xls', is in a different format
than specified by the file extension... Do you want to open the file now?"

Question one - how can this warning be avoided?
Question two - if you click "yes" to the warning, the file still opens, but
it can take a very long time to open if you have over 5000 rows. It's almost
as if Excel is parsing the html cell by cell.

Any ideas? Thanks much!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Html / Aspx Export to Excel =?Utf-8?B?WTJLUFJBQlU=?= Microsoft ASP .NET 0 27th Sep 2006 10:31 AM
Export MS-Excel to HTML mogens Microsoft Excel Discussion 4 29th Jul 2006 01:31 PM
Error in export to HTML BillyBob Microsoft Access External Data 0 11th Sep 2003 09:15 PM
Excel, HTML-Export and Images Alfred Sehmueller Windows XP Internet Explorer 0 8th Jul 2003 10:25 AM
Excel, HTML-Export and Images Alfred Sehmueller Microsoft Excel Misc 0 8th Jul 2003 10:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 AM.