Share via

Calling ExcelHandler to populate the Data from Reporting Service

Gaurav Gupta 1 Reputation point
2022-04-03T12:17:51.047+00:00

I am calling excel Handler to call a Reporting Service Report directly from the Report Link like this:

var MySheet= ExcelHandler.Workbook.Worksheets.Add();
MySheet.Name = MyDataSheet;

string webcn =
$@"https://www.abcz.com?ReportPage&reportid={reportId}&template=123&ReportId=123";

MySheet.QueryTables.Add(Connection: "URL;" + webcn, Destination: MySheet.Cells[1, 1]);

Earlier this code was working fine. But now in my application Single Sign On is implemented. After that it is not working. May be due to Authentication. Is there any way we can call this Report by passing Authentication Id and Pwd.

SQL Server Reporting Services
SQL Server Reporting Services

A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.

Microsoft 365 and Office | Development | Other
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.