本文介绍了正在访问从跨浏览器跨OS可能在所有Web应用程序的USB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有无论如何,我们可以做到这一点。我听说了Silverlight 4中不同的东西,Java脚本或Active X控件,但没有看到code中的任何演示的任何人。

I am wondering if there is anyway we can achieve this. I heard different things about Silverlight 4 , Java Script or Active X control but not seen any demo of code for any of them.

有谁知道任何网络组件可用或如何写一个。

Does anyone know any web component that is available or how to write one.

我们真的很喜欢通过网络捕获客户端的USB驱动器,并读取/写入数据。这有可能在任何Web浏览器的任何操作系统的工作。

We really like capture client's USB drive via Web and read/write data on it. This has to work for ANY Operating system in Any web browser.

感谢

什么WPF浏览器模式......我读,我可以承载内部浏览器有点像智能客户端我的WPF应用程序。

What about WPF in browser mode...I read that I can host my wpf apps inside browser and sort of like smart client.

下面是通过Silverlight 4中,但笔者这样做的一个很好的例子,提到了关于通过

Here is a great example of doing this via silverlight 4 but author mentions about possibility of accessing USB on MAC via

1)使能执行的AppleScript。
此选项将让我们有一台Mac机上的控制相同数量的,因为我们做一个Windows机器上。

1) Enable executing AppleScripts. This option will let us have the same amount of control on a mac machine as we do on a windows machine.

2)添加调用场景下的告诉应用程序命令,并得到一个AppleScript的对象的重载ComAutomationFactory.CreateObject()。
此选项会工作得非常好了办公自动化。对于任何其他操作系统功能,你必须code OS访问两次。

2) Add an overload to ComAutomationFactory.CreateObject() that calls the "Tell Application" command under the scenes and gets a AppleScript object. This option would work extremely well for Office automation. For any other operating system feature, you’ll have to code OS access twice. 

我不太明白。是否有任何试过这种?

I did not quite understand it. Has any tried this ?

推荐答案

如果你愿意引入闪存(10)的依赖,你可以使用FileReference类在时间去访问一个文件时,首先为使用读浏览方法,那么使用保存方法。

If you're willing to introduce a dependency on Flash (10), you can use the FileReference class to get access to one file at a time, first for reading using the browse method, then for writing using the save method.

请注意,出于安全考虑,每次调用这些方法必须被触发作为用户输入的结果(例如点击一个按钮),每一次,他们被称为一个特定的操作系统文件打开/另存为对话框。

Note that for security reasons, each call to these methods must be triggered as a result of user input (e.g. clicking a button), and each time they are called an OS-specific File Open/Save As dialog box is displayed.

有一个这给一些样本code编辑一个文本文件(负载+保存)直接在Flash中,而无需任何服务器端的帮助。它应该是足以让你在正确的方向开始。

There's a video tutorial which gives some sample code for editing a text file (load + save) directly in Flash, without needing any server-side help. It should be enough to get you started in the right direction.

这篇关于正在访问从跨浏览器跨OS可能在所有Web应用程序的USB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 15:45