简体   繁体   中英

How to upload Excel files created by SSIS or .NET to SSRS report server?

I have been given a task to generate a number of Excel files for our business and as a method of delivery I was considering SQL Server 2005 Reporting Services (SSRS).

What I want to do is either generate the Excel spreadshhets from SSIS or a .Net (C#/VB) application then programatically upload the file to the appropriate area within SSRS.

There does not appear to be any documentation for this so I'm not sure that this is supported but I did see this post which discusses report execution so was interested in other methods.

Microsoft.SqlServer.ReportExecution.ReportExecutionService rsExec = 
    new Microsoft.SqlServer.ReportExecution.ReportExecutionService();
    rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rsExec.Url = @"http://<ServerName>/reportserver/ReportExecution2005.asmx";

Does anyone have an experience in programatically uploading files to SSRS? Can you point me to any relevant articles?

There is a CreateResource method in the ReportingServices object model... see a description of uploading PDF's programmatically here . You can then modify that to your requriements.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM