Crystal Reports MVVM数据源 [英] Crystal Reports MVVM Data Source

查看:76
本文介绍了Crystal Reports MVVM数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MVVM应用程序,想添加Crystal Reports.我有一个PatientList的ViewModel,并希望将报告绑定到ViewModel中可观察到的患者集合.集合就不会出现在数据源窗口中.

I have an MVVM application and would like to add Crystal Reports. I have a ViewModel of PatientList and would Like to Bind the Report to an Observable collection of Patients in the ViewModel. the Collection is not appearing in the data sources window.

推荐答案

我猜您是在引用Crystal-Reports数据源窗口,对吗? 如果是这样-我想您永远不会在那儿找到ObservableCollection(而且我不知道您是否可以让CR观察该集合),但是在Crystal-Report的文档类上,您应该有类似SetDatasource的内容(我不会不再有最新版本,CR会不时更改此版本)-在最新版本中,我知道您在某些情况下(DataTable)必须转换为IEnumerable<...>,所以也要注意这一点.

I guess you are refering to Crystal-Reports datasource window right? If so - I think you will never find the ObservableCollection there (and I don't know if you can have CR observe the collection) but on the document-class in Crystal-Report you should have something like SetDatasource (I don't have the newest version anymore and CR changed this from time to time) - in the last version I know you had to cast to IEnumerable<...> in some cases (DataTable) so look out for this too.

这篇关于Crystal Reports MVVM数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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