am creating a deployment script to deploy over 400 reports to Reporting Services utilizing the rs.exe utility. All reports are associated to shared data sets.
I have 90% of the script completed and working. I am having an issue with programmatically determining then changing a reports dataset reference. At the moment I cannot determine the data set reference therefore I do not know which datasets the report has to be associated with.
Is there a way to determine a reports dataset reference based on the report file on the local computer?
What I have tried so far is to use GetItemReferences RS Webservice method to determine the report dataset References as per the code below. The issue with this is that the referenceData(count).Reference presumably because after it is deployed to the reporting server it is no longer valid.
Dim referenceData() As ItemReferenceData = RS.GetItemReferences(reportPath, "DataSet") For count As Integer = 0 To referenceData.Length-1 LogWarn("referenceData({0}).Name: {1}", count, referenceData(count).Name) LogWarn("referenceData({0}).Reference: {1}", count, referenceData(count).Reference) Next