网页运行本地应用程序 [英] Web page run local app

查看:74
本文介绍了网页运行本地应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要构建一个可以自动从服务器上下载文件到用户本地C:驱动器的网站,然后在Word中打开文件

on本地PC)


我该怎么做?


如果我写了一个vb程序来进行下载,我怎么把它链接到

网站/网页?


任何想法请。


谢谢

I need to build a web site that can automatically download a file from
the server to the users local C: drive and then open the file in Word
on the local PC)

How can I do this ?

If i write a vb program to do the download, howto I link this to the
web site / web page?

any ideas PLEASE .

thank you

推荐答案

这是不可能的(出于安全原因或除非你被允许修改

的行为)。你可以让用户点击链接然后他们可以选择保存(想要的地方)或打开文件。这是否足够?


如果你的目标是企业控制的计算机,你可以部署一个ActiveX

控件,一个Java applet或一个允许的.NET控件那个

(或使用网络?)...


-

Patrice

" Garry" < ma ** @garry.park.nameaécritdansle message de news:
博******************************* *@4ax.com ...
This is not possible (for safety reasons or unless you are allowed to modify
the behavior). You could have the user click on the link and they could then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...

--
Patrice

"Garry" <ma**@garry.park.namea écrit dans le message de news:
bo********************************@4ax.com...

>我需要建立一个可以自动从
$ b下载文件的网站$ b服务器给用户本地C:驱动器然后在Word上打开文件

在本地PC上)


我该怎么办?


如果我写一个vb程序进行下载,如何将其链接到

网站/网页?


任何想法请。


谢谢
>I need to build a web site that can automatically download a file from
the server to the users local C: drive and then open the file in Word
on the local PC)

How can I do this ?

If i write a vb program to do the download, howto I link this to the
web site / web page?

any ideas PLEASE .

thank you



感谢您的回复。


i thinka .NET控制是前进的方向。有什么地方我可以获得

如何将简单的.NET控件集成到网页中的示例,以及
执行本地任务。另外,如何将.NET控件下载到

本地PC?

Garry


在星期二, 2007年7月10日15:28:30 +0200,Patrice

< http://www.chez.com/scribe/wrote:
thanks for your reply.

i thinka .NET control is the way forward. Is there anywhere I can get
a sample of how to integrate a simple .NET control into a web page, to
preform a local task. Also, how to download the .NET control to the
local PC?

Garry

On Tue, 10 Jul 2007 15:28:30 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:

>这是不可能的(出于安全原因或除非您被允许修改行为)。您可以让用户单击该链接,然后他们可以选择保存(想要的地方)或打开文件。这是否足够?

如果你的目标是企业控制的计算机,你可以部署一个ActiveX
控件,一个Java applet或一个.NET控件,允许这样做
(或使用网络?)...
>This is not possible (for safety reasons or unless you are allowed to modify
the behavior). You could have the user click on the link and they could then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...


你可能仍然想要考虑这个,因为我不确定看到添加的是什么? >
值,即如果你这样做,正常值方式:

- 用户将选择是否应保存文件(以及在哪个位置)

或打开(然后在打开之前将其写入本地临时目录)


使用另一种解决方案,我看到的唯一附加值是:

- 不会提示用户(这也是一种风险)

- 它将保存在程序定义的位置


为此,您需要让用户下载/接受Java小程序,

activex控件,.NET控件(你需要拥有Java Virutal

机器,.NET框架或你依赖的任何技术

安装客户端以及部署安全策略或让用户允许这些操作。


它们使用applet托管在页面中或对象标签。例如
http://aspnet.4guysfromrolla.com/文章/ 052604-1.aspx


现在我真的不确定它是否值得这么麻烦我会保持

通常的行为。你熟悉这个吗?你有没有试过一个

的锚点链接?


你可能还需要解释一下你想做什么。有时

有了整个画面提出了更好的建议(例如,如果你想要

来执行许多本地任务,那么你可能只需要一个本地的

与网络服务或其他解决方案等交谈的应用程序).​​..


---

Patrice


" Garry" < ma ** @garry.park.nameaécritdansle message de news:
LM ******************************* *@4ax.com ...
You may still want to consider this as I''m not sure to see what is the added
value i.e. if you do this the "normal" way :
- the user will choose if the file should be saved (and at which location)
or opened (it is then written in a local temp directory before being opened)

With the other solution, the only added value I see is that :
- the user will not be prompted (which is also a risk)
- it will be saved at a program defined location

For this you''ll need to have the user to download/accept a java applet,
activex control, .NET control (and you need to have the Java Virutal
machine, the .NET framework or whatever technology you relly on to be
installed client side plus to deploy a security policy or have the user to
allows those operations).

They are hosted in a page using the applet or object tag. For example
http://aspnet.4guysfromrolla.com/articles/052604-1.aspx.

For now I''m really not sure it"''s worth the trouble and I would just keep
the usual behavior. Are you familiar with this ? Have you already tried an
anchor link ?

You may want also to explain a bit what you are trying to do. Sometimes
having the whole picture raises better suggestions (for example if you want
to perform many local tasks you could perhaps then have just a local
application that talks with web services or some other solution etc)...

---
Patrice

"Garry" <ma**@garry.park.namea écrit dans le message de news:
lm********************************@4ax.com...

感谢您的回复。


i thinka .NET控件是前进的方向。有什么地方我可以获得

如何将简单的.NET控件集成到网页中的示例,以及
执行本地任务。另外,如何将.NET控件下载到

本地PC?

Garry


在星期二, 2007年7月10日15:28:30 +0200,Patrice

< http://www.chez.com/scribe/wrote:
thanks for your reply.

i thinka .NET control is the way forward. Is there anywhere I can get
a sample of how to integrate a simple .NET control into a web page, to
preform a local task. Also, how to download the .NET control to the
local PC?

Garry

On Tue, 10 Jul 2007 15:28:30 +0200, "Patrice"
<http://www.chez.com/scribe/wrote:

>>这是不可能的(出于安全原因或除非您被允许
修改行为)。你可以让用户点击链接然后他们可以选择保存(想要的地方)或打开文件。这是否足够?

如果你的目标是企业控制的计算机,你可以部署一个ActiveX
控件,一个Java applet或一个.NET控件,允许这样做
(或使用网络?)...
>>This is not possible (for safety reasons or unless you are allowed to
modify
the behavior). You could have the user click on the link and they could
then
choose to save (where the want) or open the file. Is this enough ?

If you target enterprise controlled computer you could deploy an ActiveX
control, a Java applet or a .NET control that would be allowed to do that
(or use the network ?)...



这篇关于网页运行本地应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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