DataSource VSTUDIO 2008
Hello everybody,
I design a FastReport in VSTUDIO 2008 and the Datasource is a XML-Schema. It is possible to Set the datasource at run-time? Charging a Dataset that repect the schema?
Thanks.
I design a FastReport in VSTUDIO 2008 and the Datasource is a XML-Schema. It is possible to Set the datasource at run-time? Charging a Dataset that repect the schema?
Thanks.
Comments
You may register the dataset using the Report.RegisterData method:
I have a problem with that code, i do it but it only show one row, i hope you can help me
Report rpTest = ((WebReport)sender).Report;
rpTest.RegisterData(dsdata);
thanks
Eliana M. L??pez
For WebReport please use StartReport event handler as described in the programmer's manual:
"It can be done by using the StartReport event of the WebReport component. In this event handler, you can call the RegisterData and RegisterDataAsp methods of the report. The report can be accessed through the WebReport.Report property:
webReport1.Report.RegisterData(myDataSet);"
protected void Page_Load(object sender, EventArgs
{
dsdata = clscities.Cities_List();
WebReport1.Prepare();
}
protected void WebReport1_StartReport(object sender, EventArgs e)
{
Report rpTest = ((WebReport)sender).Report;
rpTest.RegisterData(dsdata, "Datos");
}
On vs or the report
how can i do that???
i have to register data in both sides??? because i thing i'm already doing it in vs using the registerdata, i have to do it in the report to???
When you create a new report, you need the datasource for it. You have to attach a data band to this datasource, if you want to print all datasource rows. If your data band is not attached to a datasource, it will print the first row only.
See the programmer's manual, "Working with ASP.NET/Using the WebReport component"