Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report viewer control in VB2005

Status
Not open for further replies.

shep6

Programmer
May 4, 2001
38
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top