四、 部署报表
? 工具部署
? 脚本部署 rs \-i -v D:\\二次开发组\\rsUtilities\\DeployReports\\DeployReports.rss -v strDataSourceName=\-s -v -v -v http://localhost:8016/reportserver -v strAimFolder=\数据源\日报oOverWriteDataSource=\-v -v strServerName=\strDataSourceUserName=\strReportsFilePath=\strDataBaseName=\strDataSourcePassword=\ Dim mDefinition As [Byte]() = Nothing Dim mWarnings As Warning() = Nothing
Dim strParentPath As String = \
Dim strParentReportsPath As String = \
Sub Main()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim items As CatalogItem() = Nothing Dim i As Integer
Dim oAimFolderExists As Boolean = False Dim oAimReportsFolderExists As Boolean = False Dim oDataSourceExists As Boolean = False
Try
'列出ReportServer根目录下所有项,判断目标目录是否存在 items = rs.ListChildren(\
For i = 0 To items.Length - 1 '是文件夹类型
If items(i).Name.ToUpper = strAimFolder.ToUpper And items(i).Type = ItemTypeEnum.Folder Then
oAimFolderExists = True End If