Using report viewer control
Hello,
I'm new to using reporting in VB2005, so wonder if anyone can help??
In my application I've created a dataset at run time (therefore have no datasource set up). I want to report on the results of this dataset and produce a couple of graphs.
I was wondering what would be the best way to do this, can I use the report viewer?
So far I've added the code below to set the datasource of the report viewer.
repOutput.LocalReport.DataSources.Add _
(New Microsoft.Reporting.WinForms.ReportDataSource("Dataset", sasDataset.Tables("output")))
I've added a report to my project (Report1.rdlc) and linked my report viewer control to this by clicking the ReportViewerTasks arrow and selecting the report. How do I then bind the fields from the dataset to this report and create the graphs based on this data?
In the past I would've just exported my data to Excel using the Excel object, however I want to try and move away from using excel.
Any help would be appreciated.
cheers