如何浏览&使用asp.net在web浏览器中打开excel文件? [英] how to browse & open excel file inside web browser using asp.net?

查看:76
本文介绍了如何浏览&使用asp.net在web浏览器中打开excel文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在sanme窗口中浏览并打开Web应用程序中的excel文件,并且还想编辑它。怎么可能通过使用C#asp.net?

任何帮助都会很棒。

解决方案

看这里



http://csharp.net-informations.com /excel/csharp-format-excel.htm [ ^ ]



http://www.c-sharpcorner.com/uploadfile/jayendra/how-to-edit-write-in-excel-file-sheet -second-sheet / [ ^ ]



使用C#打开和导航Excel [ ^ ]


编辑任何文件类型 - 包括Excel的那些 - 您需要支持应用程序。浏览器 - 无论如何 - 无法打开和理解除html内容之外的其他文件...

您能够从不同站点打开Excel文件的原因是您有办公室( Ms,Open Libre)应用程序安装在您的计算机上,浏览器可以根据文件的mime类型找到该应用程序。

在大多数情况下,该应用程序无法在浏览器中托管并将打开您的文件在新窗口中。即使可以在浏览器中托管的应用程序(如pdf阅读器),这种行为也可以由用户控制,你无法做任何事情......

有不同的公司提供控制在没有原始应用程序的情况下编辑此类内容 - 您可以使用Google查找并检查它们......

这并不意味着您也可以开发此类控制 - 这只是时间和知识的问题。

Hi,
I want to browse & open excel file inside web application in sanme window, & also want to edit it. how it is possible by using C# asp.net?.
Any help would be great.

解决方案

see here

http://csharp.net-informations.com/excel/csharp-format-excel.htm[^]

http://www.c-sharpcorner.com/uploadfile/jayendra/how-to-edit-write-in-excel-file-sheet-second-sheet/[^]

Opening and Navigating Excel with C#[^]


To edit any file type - including those of Excel - you need supporting application. A browser - any for that matter - not able to open and understand other files than those with html content...
The reason you able to open Excel files from different sites is that you have some office (Ms, Open Libre) application installed on your computer and the browser can find that application based on the mime type of the file.
In most cases that application can not be hosted inside the browser and will be open your file in a new window. Even with application (like pdf readers) that can be hosted inside the browser, that behavior can be controlled by the user and you can't do about it nothing...
There are different companies offering controls to edit such content without the original application - you can use Google to find them and examine them...
Not that means you also can develop such control - it's only a matter of time and knowledge...


这篇关于如何浏览&使用asp.net在web浏览器中打开excel文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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