当我单击链接的 .vsd 文件时,如何让 Firefox 启动 Visio?
在我们的内部网站上,我们链接了各种 MS Office 文档。 当我单击 Word、Excel 或 PowerPoint 文件时,Firefox 会提供“打开”、“保存”或“取消”选项。 当我单击“打开”时,将启动相应的应用程序并加载文件。 太棒了。 但由于某种原因,当我单击链接的 Visio 文件时,我只能看到“保存”选项,这很不方便。
我知道 Firefox 知道链接的文件是 Visio 文件,因为它在对话框中告诉我:“您已选择打开 example.vsd,它是:Microsoft Visio 绘图”。
如何让 Firefox 在单击链接的 Visio 文件时启动 Visio?
更新: 当我单击链接的 Visio 文件时,Firefox 未启动 Visio,因为 Web 服务器无法正确识别内容类型。 它将 Visio 文件标识为 application/octet-stream 而不是 application/x-visio。 (感谢格兰特·瓦格纳。)这解释了为什么它不起作用。 就我而言,我也许能够更改 Apache 配置文件,但这并不确定。
但是,我很想知道是否有一种方法可以配置 Firefox 本身以根据其他标准(例如文件扩展名)启动 Visio。 这样,即使我无权访问 Apache 配置,我也可以打开 Visio 文件。
On our intranet site, we have various MS Office documents linked. When I click on a Word, Excel or PowerPoint file, Firefox gives me the option to Open, Save or Cancel. When I click on Open, the appropriate app is launched and the file is loaded. This is perfect. But for some reason, when I click on a linked Visio file, I only get the option to Save, which is inconvenient.
I know that Firefox knows the linked file is a Visio file because it tells me so in the dialog box: "You have chosen to open example.vsd which is a: Microsoft Visio Drawing".
How can I make Firefox launch Visio when I click on a linked Visio file?
Update:
Firefox is not launching Visio when I click on a linked Visio file because the web server does not identify the content-type correctly. It identifies the Visio file as application/octet-stream instead of application/x-visio. (Thanks Grant Wagner.) This explains why it doesn't work. And in my case, I may be able to get the Apache config file changed, but this is not certain.
However, I would love to know if there is a way to configure Firefox itself to launch Visio based on some other criteria, like file name extension. This way I can open Visio files even if I don't have access to the Apache configuration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
分步操作:
我在 Firefox 33.0.2 上测试了此方法,访问 Sharepoint 中的文件。
Step-by-step:
I tested this on Firefox 33.0.2 accessing files in Sharepoint.
问题出在 VSD 文件类型上。
打开 Windows 资源管理器
菜单/工具/文件夹选项
单击文件类型选项卡
找到 VSD 文件类型(只需输入 vsd > 即可到达)
有两个按钮:[修改] 和 [特殊] - 单击 [特殊]按钮
--- 列出了与该文件关联的操作
您必须添加“打开”选项:
添加Visio的路径如下:
"C:\Program Files[## 正确的路径##]\VISIO.EXE" /e
(只需检查其他文件类型的设置方式,例如:DOC 或 XLS)
还有选项:在同一窗口中浏览。
取消选中在同一窗口中浏览。复选框,
单击[确定]
即可! 浏览器应询问您是否要打开或下载该文件。
标记您的选项并从“始终询问此文件类型...”中删除复选框您的 VSD 文档应直接在 Visio 中打开。
希望这有帮助,BR,Zoltan Gajdatsy
THe problem is with the VSD File type.
Open Windows Explorer
Menu / Tools / Folder options
Click on the File Type TAB
Locate the VSD file type (just type v s d > it will get You there)
There are two Buttons: [Modify] and [Special] -- Click on the [Special] button
--- The Actions associated with the file are listed
You have to add the Open option:
Add the path to Visio as follows:
"C:\Program Files[## correct PATH##]\VISIO.EXE" /e
(Just check how an other filetype is setup, e.g.: DOC or XLS)
Also there is the option: Browse in same window.
Uncheck the Browse in same window. checkbox,
Click [OK]
and there You go! The browser should ask if You want to open or download the file.
and one You mark Your option and remove the checkbox from "Always Ask for this Filetype..." Your VSD Document should open directly in Visio.
Hope this Helps, BR, Zoltan Gajdatsy
添加了扩展“OpenDownload”,解决了该问题。
Added extension 'OpenDownload' which resolved the issue.
在 Firefox 中转到“工具”、“选项”...,然后当选项框出现时转到“应用程序”,您可以在其中设置所有扩展和启动条件。 实际上,它被称为“内容类型”和“动作”......
Go under Tools, Options.. in firefox, then when the options box comes up go to applications, there you can set all extensions and launch conditions. Actually it's termed "Content Type" and "Action" there...
如果行为类似于打开应用程序,您所需要做的就是单击“打开/保存”对话框,“打开”按钮将在大约一秒钟后变为可用。 这有帮助吗?
If the behavior is similar to opening an Application, all you need to do is click the Open/Save dialog and the Open button will become available about a second later. Does this help?
进入“工具”| 选项...似乎不起作用,因为这样做后您会收到一条错误,表示打开文件时发生未知错误。
但是,如果您安装 OpenDownload 扩展程序,则会运行成功运行 Visio 的按钮。
Going under Tools | Options... doesn't seem to work, as after doing so you get an error that an unknown error occurred opening the file.
However, if you install the OpenDownload extension, then you get a run button which successfully runs Visio.
编辑文件 %appdata%\Mozilla\Firefox\Profiles\your profile\mimeTypes.rdf
添加以下内容
这对我在 Windows XP SP2 下的 Firefox 3.6.3 下有效
Edit the file %appdata%\Mozilla\Firefox\Profiles\your profile\mimeTypes.rdf
Add in the following
This is working for me under Firefox 3.6.3 under Windows XP SP2
@院长
如果打开方式不可用,最可能的原因是 Firefox 不知道文档的 MIME 类型,并假设它是
application/octet-stream
,或者您的Web 服务器正在以application/octet-stream
(或其他某种仅二进制 MIME 类型)的形式提供以 .vnd 结尾的文件。要确认这一点,请下载 LiveHTTPHeaders 并使用它来确认文件的 MIME 类型是
application /x-visio
。@Dean
If Open With is not available, the most likely cause is that Firefox does not know the MIME type of the document and is assuming it is
application/octet-stream
, or your web server is serving up files that end in .vnd asapplication/octet-stream
(or some other binary-only MIME type).To confirm this, download LiveHTTPHeaders and use it to confirm that the MIME type of the file is
application/x-visio
.