Share via

CreateCatalogItem method

Paul 61 Reputation points
2022-08-08T19:01:46.897+00:00

In ReportingService2010 web service, I created the C# Console App to upload files such as Excel, HTML, files to a folder in SSRS2019. Using the "CreateCatalogItem" method, I managed to upload the RDL files using "Report" in the "ItemType" with "null" on the "Property", however, when using the "Resource" in the "ItemType" for other types of files, it failed on the "Property". I am not sure on how to specify the "Property" such as "MimeType" for other type of files such as Excel and HTML files. Thanks.

FileStream stream = ReportFile.OpenRead();
definition = new Byte[stream.Length];
stream.Read(definition, 0, (int)stream.Length);
stream.Close();
CreateCatalogitem("Resource", ReportFile.Name, @"/SSRS_Upload", true, definition, null, out Warnings) ;

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.

Developer technologies | .NET | .NET CLI
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-08-09T05:26:40.387+00:00

    Was this answer helpful?


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.