We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How do I auto click View Report


I am pulling my hair out, and it's probably an easy fix. But I have built a report using the Bold Report designer and set the credentials in the connection string. The credentials are populated, see the screenshot. But I have to click the view report. I was hoping it would auto select.. Any ideas?


Thank you,

Richard Baker

1 Reply

AM Arumugasami Murugesan Syncfusion Team December 13, 2022 06:06 AM UTC

Hi Richard Baker,

Thanks for contacting Bold Report support.

If you want to remove the prompt credentials when previewing the report, you can add the connection string programmatically in the API controller in the OnInitReportOptions method. You need to use the below code snippet to pass the data source credentials.


public void OnInitReportOptions(ReportViewerOptions reportOption) 


        reportOption.ReportModel.DataSourceCredentials.Add(new BoldReports.Web.DataSourceCredentials() { Name = "AdventureWorks",    ConnectionString = "Data Source=dataplatformdemodata.syncfusion.com;Initial Catalog=AdventureWorks;" , UserId = "demoreadonly@data-platform-demo" , Password = "N@c)=Y8s*1&dh"}); 


Please refer to the below documentation for your reference.




Arumugasami M

Live Chat Icon For mobile
Up arrow icon