Hi Patrick,
Thanks for using Syncfusion Products.
We have prepared a sample for using local business object data source in ReportDesigner and it can be download from the following location.
Report sample: http://www.syncfusion.com/downloads/support/directtrac/118474/PreviewRDCL-6178121861707774314.zip
Please let us know if you have any questions.
Regards,
Anandakumar S
Hi Patrick,
Thanks for your update.
ReportDesigner have AddDataSet , AddDataSource API’s for adding
DataSource/DataSet to the Report from an existing ReportDefinition. You can use
these API’s in ReportOpened / NewReportOpened event of ReportDesigner. Please
find code snippet for this below.
AddDataSet/AddDataSource:
void
ReportDesignerControl_NewReportOpened(object sender, ReportChangedEventArgs e) { this.ReportDesignerControl.AddDataSet("Path to the existing report", "DataSetName"); this.ReportDesignerControl.AddDataSource("Path to the existing report", "DataSourceName"); } |
Please let us know if you have any questions.
Regards,
Anandakumar S
Hi Patrick,
Thanks for your update.
ReportDesigner have AddDataSet , AddDataSource API’s for adding
DataSource/DataSet to the Report from an existing ReportDefinition. You can use
these API’s in ReportOpened / NewReportOpened event of ReportDesigner. Please
find code snippet for this below.
AddDataSet/AddDataSource:
void
ReportDesignerControl_NewReportOpened(object sender, ReportChangedEventArgs e) { this.ReportDesignerControl.AddDataSet("Path to the existing report", "DataSetName"); this.ReportDesignerControl.AddDataSource("Path to the existing report", "DataSourceName"); } |
Please let us know if you have any questions.
Regards,
Anandakumar S
Hi LEO LI,
We can also add DataSource /DataSet at runtime by modifying the ReportDefinition and we can load it to the ReportDesigner. We have prepared a sample to modify the ReportDefintion dynamically, it can be downloaded from the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/116065/ReportCustomization1938392844.zip
Please let us know if you have any questions.
Regards,
Anandakumar S