Silverlight 3 是否可以访问本地文件系统、Open Excel 和打印报告? [英] Does Silverlight 3 have access to local file system, Open Excel, and print reports?

查看:21
本文介绍了Silverlight 3 是否可以访问本地文件系统、Open Excel 和打印报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道 Silverlight 3 是否可用于创建业务应用程序,在其中我可以使用文件导入/导出工具、读取 xls 文件并打开 Excel、使用诸如 Crsytal Reports 或 Reporting Services 之类的报告工具,或者..需要WPF吗?

I was wondering if Silverlight 3 can be used to create line of business applications where I can use file import/export facilities, read an xls file and open Excel, use a report tool like Crsytal Reports or Reporting Services or.. is WPF needed?

我是 Silverlight 和 WPF 的新手,想决定是否可以跳过学习 WPF.我知道 Silverlight 是 WPF 的一个子集,但我只想专注于两者之一.

I am new to Silverlight and WPF and want to decide if I can skip learning WPF. I know Silverlight is a subset of WPF but I just want to concentrate in one of the two.

推荐答案

虽然 Silverlight 是沙盒的,无法直接打开文件并将文件保存到本地文件系统,但可以将流获取到本地文件.

Although Silverlight is sand-boxed and it isn't possible to open and save files to the local file system direcly, it is possible to get a stream to a local file.

OpenFileDialogSaveFileDialog 类.这些类可以让用户选择文件或位置.它们只返回该文件的流,不提供有关文件系统的任何信息.这样就可以导入和导出到例如excel.

There are the OpenFileDialog and SaveFileDialog classes. These classes make it possible to let the user select a file or location. They return only a stream to that file and do not give any information about the filesystem. This way it's possible to import and export to excel for example.

这个例子应该足够了带你去.

更新:与此同时,我在我的博客 http://www.timmykokke.com/

update: in the meantime I did a small SilverBullet(tm) on the subject on my blog at http://www.timmykokke.com/

这篇关于Silverlight 3 是否可以访问本地文件系统、Open Excel 和打印报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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