c# - Microsoft WinForm ReportViewer from List -
How can any code snippet, tutorial link or list of objects prepare a report in Microsoft reports?
I have the following dog classes:
Nameshot Mines {Public Square Dogs {Get Public Intimate Leggs; Set; } Public string name {get; Set; } Public string breed {get; Set; Then, in the window form, I have a report wise object, which I would like to populate with MySNS.Dog list / strong> Such items: list & lt; MyNS.Dog & gt; MyDogs = new list & lt; MyNS.Dog & gt; (); / // // Hereformform // Use it as a data source for ReportViewer Any ideas?
Thank you!
For local reports, you can specify your data source as:
var reportViewer = New ReportViewer (); Var ReportDataSource = New Report Data Source ("MinesDog", Mythogues); ReportViewer.LocalReport.DataSources.Add (reportDataSource);
Comments
Post a Comment