Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default asp.net html export to excel - error

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
export to html avi Excel Programming 1 June 6th 07 09:00 AM
Export html page to Excel - support files folder Export html page to Excel - support file Excel Discussion (Misc queries) 1 June 24th 05 12:36 PM
Excel features NOT supported when you export to HTML Lisa Excel Discussion (Misc queries) 0 February 11th 05 03:37 PM
How do I export excel data to an html file? Frances Excel Programming 1 December 8th 04 07:00 AM
Export range to html Mikel Perez Excel Programming 0 December 1st 03 03:54 PM


All times are GMT +1. The time now is 12:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"