如何打开一个现有的Excel文件? [英] How to open an existing excel file?

查看:112
本文介绍了如何打开一个现有的Excel文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在asp.net应用程序上.在这种情况下,我正在生成一些报告文件(Excel文件).生成这些文件后,我需要立即打开这些文件并在屏幕上显示.
怎么做?

请帮忙.

在此先谢谢您.

Hello All,

I am working on asp.net application. In that I am generating some report files (Excel files). After generating those, I need to open and display those on the screen immediately.
How to do it?

Please help.

Thanks in advance.

推荐答案

您可以使用response.writefile(来自内存)发送文件作为对请求的响应.您还需要设置内容类型,然后如果用户具有Excel,则将为他们打开文件.
You can use response.writefile ( from memory ) to send a file as a response to a request. You need to also set the content type, and then if the user has Excel, the file will open for them.


这篇关于如何打开一个现有的Excel文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆