我目前正在C#
为我的公司开发一个应用程序,该应用程序连接到我们的SSRS
服务器,运行特定报告,在应用程序中格式化 excel 报告,然后将它们吐出到某个位置。
该应用程序按预期工作,只有一点点烦恼。
每次运行特定的报告类型时,都必须输入credentials
for 。
我们以报告的 URL 作为文件名打开。这是从我们的应用程序
实际打开文件的代码:SSRS
excel file
excel
Microsoft.Office.Interop.Excel.Workbook excelActiveBook;
excelActiveBook = excelApp.Workbooks.Open(reportURL, 0, false, 5, System.Reflection.Missing.Value, System.Reflection.Missing.Value, false, System.Reflection.Missing.Value, System.Reflection.Missing.Value, true, false, System.Reflection.Missing.Value, false, false, false);
有什么方法可以通过credentials
我们SSRS
编写的这个应用程序传入。
我们正在使用SSRS 2005
.