Ok,
has anyone actually used reportViewer to succesfully view LlblGenPro data?
drag the EntityCollection onto your form
drag a BindingSource control.
You then set the DataGridView's DataSource property to the BindingSource control and the BindingSource' DataSource property to the EntityCollection dragged onto the form. The EntityCollection class then doesn't have a factory set so use the the smart-tag on the EntityCollection on the form to configure the collection which will show the EntityCollection's designer.
you should be able to replace the datagrid view with your report
the problem is that the report is SEPARATE from the winform.
The new report that I create will not be aware of any winform specific datasources / bindingSources.
So, I added an entityCollection as a PROJECT datasource...
Data --> add new datasource --> object --> navigate to the correct entityCollection.
The correct entityCollection now appears in my project data sources.
I then create the report.
The report displays, but only the headers, it doesn't display any details.
Maybe I have made a mistake in the above?
I suspect that the entityCollection is not being populated...Why, I don't know
I can confirm that I can:
1) use the entityCollection to programatically populate a gridView
2) use a standard .NET database datasource to get the data onto a test report. (from same database)
I notice a difference in the 2 different winforms:
NORMAL datasource winform report:
private void frmTableReport_Load(object sender, EventArgs e)
{
this.aspnet_MembershipTableAdapter.Fill(this.CSK2DataSet.aspnet_Membership);
this.reportViewer1.RefreshReport();
}
LlblGenPro datasource winform report:
private void frmLlblGen_Load(object sender, EventArgs e)
{
//WHY is there no code here to POPULATE the entityCollection?
this.reportViewer1.RefreshReport();
}
I can supply more details of course.I think I am nearly there.It would be nifty to get a walkThru of using a reportViewer for LlblGenPro.I could help to write it, but obviously I need to be able to work it first :-)
many thanks for any help.
yogi