简体   繁体   中英

Excel issue with asp.net

I am writing a client-side script.

I need to read an Excel file from the client location, do some modifications and return it. I can read the file and do the modification but how do I return it?

I also have to consider the performance of the website.

By "return it", do you mean save it back to the Client location? That's going to be hard if not impossible unless you somehow have write permissions to their filesystem via some horrid ActiveX control or similar.

Instead, you should serve the file using the Excel MIME type and let the user save it to the location.

Take a look at these answers for more info: Setting mime type for excel document

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM