C# Class RsDeploy.ReportDeployment

ファイルを表示 Open project: chrispfarrell/RsDeploy Class Usage Examples

Public Methods

Method Description
DeleteAndRecreateFolder ( string reportingServerFolderName, string folderName ) : void

This routine deletes and recreates a folder on a remote SSRS server

PublishReport ( string fileSystemPath, string reportingServerFolderName, string reportName ) : void

Routine deploys a report from local file system to remote SSRS server using WebServices

ReportDeployment ( ) : System
ReportDeployment ( Microsoft.SqlServer.ReportingServices2010.ReportingService2010 rs ) : System
SetDataSourceForReport ( string reportingServerFolderName, string reportName, string dataSourceReferenceName ) : void

Private Methods

Method Description
DeployReportToReportingServer ( string reportingServerFolderName, string reportName, byte definition ) : void
GetServerDataSources ( string dataSourceReferenceName, string dataSourceName ) : DataSource[]
NormalizeFileSystemPath ( string fileSystemPath ) : string

Checks to see if FileSystemPath ends with \. If not present, it is added

NormalizeReportingServerFolderName ( string reportingServerFolderName ) : string

Checks to see if the reporting server folder name begins with a /. If not present, it is added

ReadReportDefinitionFromFileSystem ( string fileSystemPath, string reportName ) : byte[]

Method Details

DeleteAndRecreateFolder() public method

This routine deletes and recreates a folder on a remote SSRS server
public DeleteAndRecreateFolder ( string reportingServerFolderName, string folderName ) : void
reportingServerFolderName string Typically this is a / for the root folder
folderName string Name of the folder to create
return void

PublishReport() public method

Routine deploys a report from local file system to remote SSRS server using WebServices
public PublishReport ( string fileSystemPath, string reportingServerFolderName, string reportName ) : void
fileSystemPath string fully qualified file system path
reportingServerFolderName string reporting server folder to deploy to relative to root
reportName string Text name of report
return void

ReportDeployment() public method

public ReportDeployment ( ) : System
return System

ReportDeployment() public method

public ReportDeployment ( Microsoft.SqlServer.ReportingServices2010.ReportingService2010 rs ) : System
rs Microsoft.SqlServer.ReportingServices2010.ReportingService2010
return System

SetDataSourceForReport() public method

public SetDataSourceForReport ( string reportingServerFolderName, string reportName, string dataSourceReferenceName ) : void
reportingServerFolderName string
reportName string
dataSourceReferenceName string
return void