We have done a project that used ReportViewer and from what I can remember you will need to dim a variable to the class LocalReport (Microsoft.reporting.webforms namespace) we did something like this:
Dim report as new LocalReport
Dim dt as datatable = GetMydataTable()
Dim dataSource as new ReportDataSource("ReportData",dt)
Dim renderedBytes AsByte()
report.Reportpath = server.MapPath("")
renderedBytes = report.Render("PDF",nothing,nothing,nothing,nothing,nothing,nothing)
kind of something like that
LocalReport report = new LocalReport();
datatable dt = GetMydataTable();
ReportDataSource dataSource = new ReportDataSource("ReportData", dt);
byte renderedBytes = null;
report.Reportpath = server.MapPath("");
renderedBytes = report.Render("PDF", null, null, null, null, null, null);
Hope this helps.
Funny thing is that I was wondering which reporting tool to use crystal vs ReportViewer. We had so many problems before using crystal that we went to reportviewer. But now that Vince included a sample, which I will try, was wondering if we could use crystal now. What are your thoughts?