Posted 20 January 2022, 3:38 pm EST
Is it possible to establish the connection at runtime of a C1Report taking it from app.config?
What if I’m using two connections in the same report and I only want to change one?
Forums Home / ComponentOne / WinForms Edition
Posted by: luis_carlosh on 20 January 2022, 3:38 pm EST
Posted 20 January 2022, 3:38 pm EST
Is it possible to establish the connection at runtime of a C1Report taking it from app.config?
What if I’m using two connections in the same report and I only want to change one?
Posted 24 January 2022, 3:21 am EST
Hi,
When you load or create a report you can use the DataSource property to change the data source. You can use the C1Report.DataSource.ConnectionString property to change/specify the connection string of the report.
Could you please share a sample of how you are using two data sources in a single report so that we can help you accordingly?
Regards
Avnish