Hi Derek,
In SSRS, we can use .rss files to publish our reports to a new folder. Please refer to the following script:
Dim definition As [Byte]() = Nothing
Dim warnings As Warning() = Nothing
Dim destinationFolder As String = "DemoReports"
Dim reportsTargetPath As String = "/" + destinationFolder
Dim reportsSourcePath As String = "C:\Demo"
Dim datasourceName As String = "DataSource1"
‘Create the destination Folder
Try
rs.CreateFolder(destinationFolder,”/”, Nothing)
Console.WriteLine("Parent folder {0} created successfully", destinationFolder)
CreateReportDataSource(datasourceName, "SQL", "Data Source=.;Initial Catalog= AdventureWorksDW2012")
Catch e As Exception
Console.WriteLine("Tasks completed successfully.”)
End Try
You can refer to the script in the following blog.
http://ift.tt/1cM2vOa
Regards,
Alisa Tang
If you have any feedback on our support, please click here.
Alisa Tang
TechNet Community Support
No comments:
Post a Comment