MVVM Crystal Reports Data Source

I have an MVVM application and I want to add Crystal Reports. I have a ViewModel PatientList and would like to bind the report to a collection of observed patients in the ViewModel. The collection does not appear in the data source window.

+1
source share
1 answer

I assume that you are referencing the Crystal-Reports data source window correctly? If so - I think you will never find an ObservableCollection there (and I donโ€™t know if you can watch the CR collection), but in the document class in Crystal-Report you should have something like SetDatasource(I donโ€™t know, t has the most new version, and CR changes it from time to time) - in the latest version I know that in some cases you had to drop IEnumerable<...>( DataTable), so pay attention to this too.

0
source

Source: https://habr.com/ru/post/1530005/


All Articles