Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

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.

using .net core connection string for bold reports?

Hi ,

I am using bold reports in my .net core razor application.  The application uses entity framework for data access and standard scaffolded code. In appsettings.json I define the connection strings as 

  "AllowedHosts": "*",
  "ConnectionStrings": {
    "WorkManagerV4Context": "Server=WIN10DESKTOP\\VS2019;Database=WorkmanagerV5;Trusted_Connection=True;MultipleActiveResultSets=true"
  }

In my bold reports I notice that the sql server information is hard coded into the definition of each report:

  <DataSources>
    <DataSource Name="DataSource1">
      <ConnectionProperties>
        <DataProvider>SQL</DataProvider>
        <ConnectString>Data Source=WIN10DESKTOP\VS2019;Initial Catalog=WorkManagerV4</ConnectString>
        <IntegratedSecurity>true</IntegratedSecurity>
      </ConnectionProperties>
      <rd:SecurityType>Integrated</rd:SecurityType>
      <rd:DataSourceID>d435ec7e-2564-47a6-a21f-dad31354076d</rd:DataSourceID>
    </DataSource>
  </DataSources>

Is there any way of having all the bold report definitions be referencing the datasource  in appsettings.json or just once somewhere in my .net c# code- so that if that source changes each report definition doesnt have to also be changed?

Thanks

1 Reply 1 reply marked as answer

MR Manoranjan Rajendran Syncfusion Team January 28, 2021 04:15 AM UTC

Hi Lyndon, 

We have validated your requirement. You want change the data source in report dynamically. You can change the report datasource in application while report processing please refer the below document for this, 

Regards, 
Manoranjan  


Marked as answer
Loader.
Up arrow icon