471,316 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

ASP.net and excel files

some time ago i wrote an asp.net application which generated excel files using Microsoft.Office.Interop.Excel. It is working but it takes a lot of time to generate the excel file.
Yeasterday i modyfied it and i am generating them like HTML files and then send them to the user like:

Expand|Select|Wrap|Line Numbers
  1. Response.ContentType = "application/vnd.ms-excel";
  2. Response.AddHeader( "Content-Disposition", "attachment;    filename=result.xls" );
and i must say that it is workin 10 times faster and does not require any use of MS Excel.

My Excel 2003 opens this file without any problems, works perfectly. My question is: Is this a good ideea to generate xls files this way....or some earlyer version of Excel will have problem opening this files??
Jun 27 '07 #1
2 1027
4,871 Expert 4TB
What testing procedures have you run?
Jun 27 '07 #2
What testing procedures have you run?
I don-t have other version of MS Excel, this is why i asked it on the forum.
I found that many developers uses this method to export a DataGrid to excel...and i try it. But i have not found any information about the compatibility with excel version.
Jun 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by richard | last post: by
3 posts views Thread by Boris Condarco | last post: by
18 posts views Thread by gonzlobo | last post: by
reply views Thread by Jon Delano | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.