문제

I would like to display list of objects in my report contain in dataset.

Example. MyDataSet has:

List<StudentAddress> {get; set;}

So how could I able to display StudentAddress in my report which is a report.

Thanks..

도움이 되었습니까?

해결책

I had the same problem.

The solution I found is the following one Reporting against a domain model.

From the documentation I found ssrs does not support a nested list of object. like what you are looking for.

What is possible is to use a nested object let's say instead of the list you have

public Address StudentAddress {get; set;} 

for this you have to decalre the classes as Serializable. Here you have another link that explains that

ReportViewer - object datasource, nested objects return

I hope the nested list feature will be implemented soon.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top