当我单击链接的 .vsd 文件时,如何让 Firefox 启动 Visio?

发布于 2024-07-05 01:16:05 字数 640 浏览 7 评论 0原文

在我们的内部网站上,我们链接了各种 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 技术交流群。

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

发布评论

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

评论(8

忘你却要生生世世 2024-07-12 01:16:06

分步操作:

  1. 在 Firefox 上,转到包含该文件的站点,右键单击 vsd 或 vsdx 文件并选择下载。
  2. 在下载窗口中,标记“记住我的选择”选项。
  3. 转到工具 > > 选项 > 应用程序,搜索 visio 类型并将 dropbox 更改为“打开方式”,然后本地化您要使用的应用程序。

我在 Firefox 33.0.2 上测试了此方法,访问 Sharepoint 中的文件。

Step-by-step:

  1. On Firefox, go to a site with the file, right-click on a vsd or vsdx file and select download.
  2. On the download window, mark remember my choice option.
  3. Go under tools > options > application, search for visio type and change dropbox to "open with" and then, localize the application you wish use.

I tested this on Firefox 33.0.2 accessing files in Sharepoint.

心意如水 2024-07-12 01:16:06

问题出在 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

書生途 2024-07-12 01:16:06

添加了扩展“OpenDownload”,解决了该问题。

Added extension 'OpenDownload' which resolved the issue.

十雾 2024-07-12 01:16:06

在 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...

伊面 2024-07-12 01:16:06

如果行为类似于打开应用程序,您所需要做的就是单击“打开/保存”对话框,“打开”按钮将在大约一秒钟后变为可用。 这有帮助吗?

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?

多情出卖 2024-07-12 01:16:06

进入“工具”| 选项...似乎不起作用,因为这样做后您会收到一条错误,表示打开文件时发生未知错误。

但是,如果您安装 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.

落花随流水 2024-07-12 01:16:06

编辑文件 %appdata%\Mozilla\Firefox\Profiles\your profile\mimeTypes.rdf

添加以下内容

<RDF:li RDF:resource="urn:mimetype:application/vnd.visio"/>

<RDF:Description RDF:about="urn:mimetype:externalApplication:application/vnd.visio"
    NC:prettyName="VISIO.EXE"
    NC:path="FULL PATH TO YOUR VISIO\VISIO.EXE" />

<RDF:Description RDF:about="urn:mimetype:application/vnd.visio"
    NC:value="application/vnd.visio"
    NC:editable="true"
    NC:fileExtensions="vsd"
    NC:description="Microsoft Visio Drawing">
<NC:handlerProp RDF:resource="urn:mimetype:handler:application/vnd.visio"/>
</RDF:Description>
<RDF:Description RDF:about="urn:mimetype:handler:application/vnd.visio"
               NC:alwaysAsk="false">
<NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/vnd.visio"/>
<NC:possibleApplication RDF:resource="urn:handler:local:FULL PATH TO YOUR VISIO\VISIO.EXE"/>
</RDF:Description>

这对我在 Windows XP SP2 下的 Firefox 3.6.3 下有效

Edit the file %appdata%\Mozilla\Firefox\Profiles\your profile\mimeTypes.rdf

Add in the following

<RDF:li RDF:resource="urn:mimetype:application/vnd.visio"/>

<RDF:Description RDF:about="urn:mimetype:externalApplication:application/vnd.visio"
    NC:prettyName="VISIO.EXE"
    NC:path="FULL PATH TO YOUR VISIO\VISIO.EXE" />

<RDF:Description RDF:about="urn:mimetype:application/vnd.visio"
    NC:value="application/vnd.visio"
    NC:editable="true"
    NC:fileExtensions="vsd"
    NC:description="Microsoft Visio Drawing">
<NC:handlerProp RDF:resource="urn:mimetype:handler:application/vnd.visio"/>
</RDF:Description>
<RDF:Description RDF:about="urn:mimetype:handler:application/vnd.visio"
               NC:alwaysAsk="false">
<NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/vnd.visio"/>
<NC:possibleApplication RDF:resource="urn:handler:local:FULL PATH TO YOUR VISIO\VISIO.EXE"/>
</RDF:Description>

This is working for me under Firefox 3.6.3 under Windows XP SP2

木緿 2024-07-12 01:16:06

@院长

对话框中只有两个按钮:“保存文件”和“取消”。 “打开方式”选项根本不存在。

但我想我明白你的意思。 有时,“打开方式”选项会显示为灰色,稍后才可用。 不幸的是,这里的情况并非如此。

如果打开方式不可用,最可能的原因是 Firefox 不知道文档的 MIME 类型,并假设它是 application/octet-stream,或者您的Web 服务器正在以 application/octet-stream(或其他某种仅二进制 MIME 类型)的形式提供以 .vnd 结尾的文件。

要确认这一点,请下载 LiveHTTPHeaders 并使用它来确认文件的 MIME 类型是 application /x-visio

@Dean

There are only two buttons in the dialog box: "Save File" and "Cancel". The "Open with" option is not there at all.

But I think I know what you mean. Sometimes, the "Open with" option is grayed out and only becomes available a moment later. Unfortunately that's not the case here.

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 as application/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.

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