是否可以在当前位置打开 Excel 文件而不下载它

发布于 2024-10-31 05:37:13 字数 124 浏览 2 评论 0 原文

我正在为公司内部网编写一个小型网站,并且有以下可能很简单的问题。是否可以从网络上的当前位置打开 Excel 文件,而不是下载它。那么所做的任何更改都是针对实际文件而不是下载的版本进行的吗?

谢谢马特

I am writing a small web site for a company Intranet and have the following question that may be simple. Is it possible to open an Excel file from it's current location on the network instead of downloading it. So that any changes made are made to the actual file and not a downloaded version of it?

Thanks

Matt

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

舞袖。长 2024-11-07 05:37:13

我建议使用Edge和IE模式来打开内网文件。 Edge 和 Chrome 通常将它们视为本地文件并自动下载。即使您在 Chrome 中选择“下载后自动打开某些文件类型”选项。

尝试在 IE 模式下使用 Edge。这为您提供了使用现代浏览器的优势,并且仍然可以访问古老的网站,例如内联网页面。

  1. 打开 Edge
  2. 在地址栏中输入:“edge://settings/defaultbrowser”
  3. 将“允许在 Internet Explorer 中重新加载站点”切换为“开”。
  4. 重新启动 Microsoft Edge。

Edge with IE 现已启用

  1. 打开新选项卡
  2. 输入您的 Intranet 链接
  3. 右键单击​​当前选项卡
  4. 单击“在 Internet Explorer 模式下重新加载选项卡”

您的 Intranet 页面可访问

来源: https://support.microsoft.com/en -us/microsoft-edge/internet-explorer-mode-in-microsoft-edge-6604162f-e38a-48b2-acd2-682dbac6f0de

I would suggest to use Edge with IE mode to open intranet files. Edge and Chrome usually sees them as local files and automatically downloads them. Even if you select the option "Open certain file types automatically after downloading" in Chrome.

Try and use Edge with IE mode. This gives you the advantage of using a modern browser and still access ancient websites like intranet pages.

  1. Open Edge
  2. Type this in your address bar: 'edge://settings/defaultbrowser'
  3. Slide the Allow sites to be reloaded in Internet Explorer toggle to ON.
  4. Restart Microsoft Edge.

Edge with IE is now enabled

  1. Open a new tab
  2. Type in your intranet link
  3. Right click on your current tab
  4. Click "Reload tab in Internet Explorer mode"

Your intranet page is accessible

Source: https://support.microsoft.com/en-us/microsoft-edge/internet-explorer-mode-in-microsoft-edge-6604162f-e38a-48b2-acd2-682dbac6f0de

粉红×色少女 2024-11-07 05:37:13

是的,这是可能的,但是您必须指定本地网络中的文件地址,而不是 Web 服务器上的 HTTP 地址。

用户自然需要能够访问网络共享上的文件,并具有写入权限。

Yes, it's possible, but then you would have to specify the address of the file in the local network, not as an HTTP address on the web server.

The user would naturally need to have access to the file on the network share, with write permission.

脱离于你 2024-11-07 05:37:13

不可以。无法通过 HTTP 打开远程 Excel 文件并将更改写入其中。

让我们考虑一下您可能尝试做的其他一些事情。

如果您正在运行 Excel,则您只能打开文件系统 API 可见的文件。这意味着本地磁盘和网络文件系统上的文件可以通过 CIFS 访问。映射的驱动器号、\\ 路径名之类的东西。

如果您设置从 Web 服务器下载 Excel 文件,则始终会下载该文件。 Excel 不会“就地”打开它。

可以满足您的要求的 Microsoft 技术解决方案是 Sharepoint。

No. It is not possible to open a remote excel file across HTTP and write changes back to it.

Let's consider some other things you might be trying to do.

If you are running excel, all you can open are files visible to the file system APIs. That means files on your local disk and network file systems accessible via CIFS. Mapped drive letters, \\ pathnames, that sort of thing.

If you set up an Excel file for download from a web server, it will always be downloaded. Excel won't open it 'in place'.

The Microsoft technology solution that addresses what you seem to be asking for is Sharepoint.

北方的韩爷 2024-11-07 05:37:13

我相信您从 HTTP 连接打开的任何内容都会“下载”到客户端。更重要的是你如何“上传”更改。

但如果这就是客户想要的,我有一些替代方案:

1)使用 Dropbox 或类似的文件共享实用程序。一旦有人将文档保存在 Dropbox 中,该文档就会自动上传到 Dropbox 帐户。免费版本最多允许 2 GB 的数据。这是相当多的 Excel 文件。

2) 使用 Gmail/Google Apps。如果这样做,您将获得 1 GB 空间用于存储在线文档。您可以上传 Excel 等 Office 文件,它们将被转换为可在 Google 文档中在线编辑的文件。如果您将设置设置为管理部分,您可以在域内甚至外部共享文件。之后您还可以将电子表格下载/导出为 Excel 格式。我还没有测试过你失去了多少标准,但因为它不是一个完整的 Excel。

3)等待微软完成他们的Office在线工作。我敢打赌,Excel 版本将通过使用一些特殊的插件或 MSIE9 技术来完全满足您当前的要求。但我还真的不知道。

希望其中一些给您带来一些想法?

Anything you open from a HTTP connection I believe is "downloaded" to the client. Its more how you "uploade" the changes.

But if thats what the customer wants I have some alternatives:

1) Use Dropbox or similar filesharing utils. Once someone saves a document in Dropbox, its automatically uploaded to the Dropbox account. The free version allows up to 2 GB of data. Thats quite a few Excel files.

2) Use Gmail/Google Apps. If you do you get 1 GB space for online documents. You can upload Office files suchs as Excel and they will be converted an online editable from within the Google Docs. You can share the files within the domain or even externally if you make that setting the admin part. Afterwards you can also download/export the Spreadsheet as Excel format. I havent tested how much of the standards you loose but ofcause its not a full Excel.

3) wait for Microsoft to finish their Office online. I bet that Excel version will do exactly what you are currently asking for by using some special plugin or MSIE9 technics. But I dont really know yet.

Hope some of this gave you some ideas?

a√萤火虫的光℡ 2024-11-07 05:37:13

如果该文件位于同一域的网络共享中(或可从运行应用程序的域访问),则有可能,前提是

  1. 该共享可由运行应用程序的域\用户读取和写入(通过所有权或分配的角色。)
  2. 该文件是可共享的(IIRC)。如果多个用户(或应用程序)需要访问它,这一点很重要。

除此之外,\domain\location 路径应该像本地(或磁盘安装)路径一样处理。

If the file is in a network share on the same domain (or reachable from the domain your app is running from), it is possible, provided that

  1. The share is readable and writeable by the domain\user the app runs under (via ownership or assigned role.)
  2. The file is shareable (IIRC). This is important if multiple users (or apps) need to access it.

Other than that, a \domain\location path should be treatable just like a local (or disk mounted) path.

放血 2024-11-07 05:37:13

在 HTML 文档中,创建/放置一个链接:

<a href='file:///H:/docs/foo/bar.xls'>Your Excel File</a>

H:/docs/foo/bar.xls 替换为您的网络 UNC 路径。请注意斜杠而不是常规的 UNC 反斜杠。

In your HTML document, create/place a link:

<a href='file:///H:/docs/foo/bar.xls'>Your Excel File</a>

Substitite your network UNC path for H:/docs/foo/bar.xls. Note the slashes instead of the regular UNC backslashes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文