Wednesday, March 28, 2012

How to save item description?

Those anybody know how to save description of any item (report, model or datasource) programmatically without saving directly to ReportServer DB in Catalog table? I'm working with RS Web Service but i can't find solution for saving only item description.

You can create a property with the name "Description" and include that in the set of optional properties when you publish the report using CreateReport():

ReportingService2005 rs2005 = new ReportingService2005();

rs2005.UseDefaultCredentials = true;

Property description = new Property();

description.Name = "Description";

description.Value = "This is a super cool report!";

byte[] reportDefinition = File.ReadAllBytes(@."e:\testreports\r1.rdl");

rs2005.CreateReport("r1", "/", true, reportDefinition, new Property[] { description });

No comments:

Post a Comment