使用 mvmm 生成 Silverlight 客户端报告
我们正在使用 MVVM 设计模式开发 Silverlight 4.0(C#、.NET 3.5)应用程序。 是否可以使用现有 ViewModel 在客户端创建报告,还是必须在服务器端完成?在服务器端,我们只有模型,我们不想将业务逻辑复制到服务器。我知道 ServiceHost 在 Silverlight 中不可用,并且我们无法使用 WindowsService。也欢迎非免费解决方案。
预先感谢
托马斯
we are developing a Silverlight 4.0 (C#, .NET 3.5) application using the MVVM design pattern.
Is it possible to create reports on the client-side with the existing ViewModels or does it have to be done on the server-side? On server-side we only have models and we don't want to copy our business logic to the server. I know ServiceHost is not available in Silverlight and we can't use a WindowsService. Non-free solutions are also welcome.
Thanks in advance
Thomas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这当然可以做到,但具体需要到什么程度取决于你自己。 Pete Brown 发布了一个关于创建 简单的报告编写器可能足以满足您的需求,并且是免费的;允许您根据需要在示例之上进行构建。
如果您升级到 .NET 4,您可以利用 codeplex 上的 Silverlight Reporting 项目。
telerik 还提供报告包;但它不是免费的,需要完整的 .NET 运行时才能生成。不要将 .NET 运行时混淆为它必须是服务器端生成的假设,因为事实并非如此。
It can certainly be done but to what extent you need is slightly up to you. Pete Brown posted an example on creating a simplistic report writer which may suffice based on your needs and is free; allowing you to build on top of the example as needed.
If you moved up to .NET 4 you could leverage the Silverlight Reporting project on codeplex.
telerik also offers a reporting package; however it is not free and requires the full .NET runtime for generation. Don't confuse the .NET runtime as an assumption that it must be server side generation as that is not the case.