I'm setting the Hidden property to True and then creating the report using the CreateReport method from the ReportingService2006 class. When I check the reportserver database Hidden is set to true. But when I call the GetProperties method it shows Hidden as being false. And in the document library the reports are visable.
I tried calling the SetProperties method after I created the report but it still didn't work.
Here's how I create the report.
Dim props(0) As ReportServer.Property
Dim SetProp As New ReportServer.Property
SetProp.Name = "Hidden"
SetProp.Value = "True"
props(0) = SetProp
rs.CreateReport(Path.GetFileName(fileName), Folder, True, bytes, props, warnings)
Any idea?
Thanks,
-Somsong
The Hidden property isn't respected by SharePoint document libraries. We would have had to make code changes in SharePoint itself in order to get document libraries to respect RS's Hidden property, and we didn't pursue that.|||So we would have to set up a default view and set a filter on it so that certain items can be hidden right? I can create a column in the document library and call it hidden, if the value in here is 'Yes' I could hide it. Do you know if I can set this value when I use the CreateReport method from the Reporting Services 2006 Web Service by passing in properties? I'm guessing this won't work cause those properties are probably just for the Report Server Database. I would probably have to use the Sharepoint Object Model to edit that column value right?
Thanks,
-Somsong
No comments:
Post a Comment