G
Guest
Hello,
I have created a class that accepts a text file as input. The file is parsed
and a data table is returned. I then take the data table, load it into SQL,
and create a local reportviewer instance from a query on the SQL table. I
would like to do away with the requirement to load the data into SQL and
retrieve it from SQL and just pass the returned data table directly to the
reportviewer. I am using VS2005 Team Edition C# in a WinForm.
this is what I had in mind:
reportViewer2.ProcessingMode = ProcessingMode.Local;
reportViewer2.LocalReport.ReportPath = "Report1.rdlc";
reportViewer2.LocalReport.DataSources.Add(new ReportDataSource("DOH",
GetData2(inputFile))); //GetData2(inputFile) returns the datatable
reportViewer2.RefreshReport();
I am missing something, probably the dataadapter.
I have created a class that accepts a text file as input. The file is parsed
and a data table is returned. I then take the data table, load it into SQL,
and create a local reportviewer instance from a query on the SQL table. I
would like to do away with the requirement to load the data into SQL and
retrieve it from SQL and just pass the returned data table directly to the
reportviewer. I am using VS2005 Team Edition C# in a WinForm.
this is what I had in mind:
reportViewer2.ProcessingMode = ProcessingMode.Local;
reportViewer2.LocalReport.ReportPath = "Report1.rdlc";
reportViewer2.LocalReport.DataSources.Add(new ReportDataSource("DOH",
GetData2(inputFile))); //GetData2(inputFile) returns the datatable
reportViewer2.RefreshReport();
I am missing something, probably the dataadapter.