Hi,
I have a web app and a class library. My wep app include my class library.
On the page load of my default.aspx web form, i set the datasource of my report.
Here is the code ( this.FolhaCargaCollection contains a List with 72 items):
Then i have done this:
Create new a report inside my class library (ClassLibrary1)
Add a ObjectDataSource, then select the collection and select "No data source member". Then finish.
On my report, i have set DataSource property to my new ObjectDataSource.
Then i hit F5 key and all work. I got all my 72 items listed.
Then i have done this:
Create new a report inside my class library (ClassLibrary1)
Add a ObjectDataSource, then select the collection and select "No data source member". Then finish.
On my report, i add a new table.
In Table wizard, i select the ObjectDataSource, then selected all properties to the table. Then finish.
I changed my page load to load the right report, then hit F5 key. What happens next is that i saw the headers of my table repeated 72 times, without data.
Is there any way that this can work, using the variable "this.FolhaCargaCollection" as the source of my report?
Thanks in advance.
I have a web app and a class library. My wep app include my class library.
On the page load of my default.aspx web form, i set the datasource of my report.
Here is the code ( this.FolhaCargaCollection contains a List with 72 items):
protected
void
Page_Load(
object
sender, EventArgs e)
{
ClassLibrary1.Report.FolhaCarga report =
new
ClassLibrary1.Report.FolhaCarga();
report.DataSource =
this
.FolhaCargaCollection;
Telerik.Reporting.InstanceReportSource reportSource =
new
Telerik.Reporting.InstanceReportSource();
reportSource.ReportDocument = report;
this
.ReportViewer1.ReportSource = reportSource;
ReportViewer1.RefreshReport();
}
Then i have done this:
Create new a report inside my class library (ClassLibrary1)
Add a ObjectDataSource, then select the collection and select "No data source member". Then finish.
On my report, i have set DataSource property to my new ObjectDataSource.
Then i hit F5 key and all work. I got all my 72 items listed.
Then i have done this:
Create new a report inside my class library (ClassLibrary1)
Add a ObjectDataSource, then select the collection and select "No data source member". Then finish.
On my report, i add a new table.
In Table wizard, i select the ObjectDataSource, then selected all properties to the table. Then finish.
I changed my page load to load the right report, then hit F5 key. What happens next is that i saw the headers of my table repeated 72 times, without data.
Is there any way that this can work, using the variable "this.FolhaCargaCollection" as the source of my report?
Thanks in advance.