简体   繁体   English

使Windows应用程序对浏览器可见

[英]Making windows application visible to browser

Background info: I have a windows application (in c#) that handles a custom file type which is just a wrapper for .pdf and .doc files. 背景信息:我有一个Windows应用程序(在C#中)处理自定义文件类型,该文件类型只是.pdf和.doc文件的包装。 The user has to download and install this program from the website in order to view and edit their custom file types and save them back to the server. 用户必须从网站上下载并安装该程序,才能查看和编辑其自定义文件类型并将其保存回服务器。

Question: Is there any way to make sure when a file is downloaded the application starts and opens the file by altering the install files of the application? 问题:是否可以通过更改应用程序的安装文件来确保下载文件时应用程序启动并打开文件? I have been looking through the MSDN documentation on file types and it is registered but I couldn't find a handler for On Download. 我一直在查看有关文件类型的MSDN文档,该文档已注册,但找不到用于下载的处理程序。 Any guidance is useful, I'm new to stackoverflow and c#. 任何指导都是有用的,我是stackoverflow和c#的新手。

You will need to register a mime type on the computer during your install process. 在安装过程中,您将需要在计算机上注册一个mime类型。 Then you will need to send the corresponding mime type with the download. 然后,您需要发送相应的mime类型和下载内容。

Here is some basic info. 这是一些基本信息。

http://msdn.microsoft.com/en-us/library/ms775148(v=vs.85).aspx http://msdn.microsoft.com/zh-CN/library/ms775148(v=vs.85).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM