Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.
We thank you for choosing Syncfusion� and appreciate your understanding.
How to add DataSources programmatically while preventing the user adding own DataSources
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
- 6 Replies
- 3 Participants
-
PC Patrick Crucq
- Jan 27, 2014 10:25 PM UTC
- May 19, 2014 03:26 PM UTC