How to bind a DataSet to a ReportViewer object?
- From: "Gordana via DotNetMonster.com" <u21328@uwe>
- Date: Sat, 29 Apr 2006 22:37:55 GMT
I use DataSet which I get from Web Service and it doesn't maintain an active
connection to the database. So that I can't populate table in Report.rdlc
dragging fields from the DataSets window to the some rows in the table. I
want to display DataTable from the DataSet via the new ReportViewer. I tryed
something like this, but it doesn't work.
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();
Am I missing something?
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-csharp/200604/1
.
- Prev by Date: Re: Where to store and document methods
- Next by Date: Re: Transfer string data to unmanaged buffer
- Previous by thread: How to send a MemoryStream to Client
- Next by thread: Fastest Way for Threads to Display on Picture Boxes?
- Index(es):
Relevant Pages
|