I have come to this issue when was trying to create a report and visualizing through the Microsoft ReportViewer component (from VS2010 SP1). This updated control requires that the classes involved in the datasource of the report are annotated with the [Serializable] attribute.
The issue comes that as model classes uses as base class ObservableObject the report is not rendered correctly when using nested objects as ObservableObject is not annotated with [Serializable] attribute.
Would be great if in an upcoming release this class include the annotation on the class.
Some could think that there is no need for that as the class itself doesn't contains anything that is not serializable, but the [Serializable] attribute is a must in the new versions (since VS2011 SP1) of the ReportViewer.
The issue comes that as model classes uses as base class ObservableObject the report is not rendered correctly when using nested objects as ObservableObject is not annotated with [Serializable] attribute.
Would be great if in an upcoming release this class include the annotation on the class.
Some could think that there is no need for that as the class itself doesn't contains anything that is not serializable, but the [Serializable] attribute is a must in the new versions (since VS2011 SP1) of the ReportViewer.