次の方法で共有


SetReportDefinition メソッド

指定したレポートのレポート定義を設定します。

名前空間:  ReportService2006
アセンブリ:  ReportService2006 (ReportService2006.dll)

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportDefinition", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function SetReportDefinition ( _
    Report As String, _
    Definition As Byte() _
) As Warning()
'使用
Dim instance As ReportingService2006
Dim Report As String
Dim Definition As Byte()
Dim returnValue As Warning()

returnValue = instance.SetReportDefinition(Report, _
    Definition)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportDefinition", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public Warning[] SetReportDefinition(
    string Report,
    byte[] Definition
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportDefinition", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
array<Warning^>^ SetReportDefinition(
    String^ Report, 
    array<unsigned char>^ Definition
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportDefinition", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member SetReportDefinition : 
        Report:string * 
        Definition:byte[] -> Warning[] 
public function SetReportDefinition(
    Report : String, 
    Definition : byte[]
) : Warning[]

パラメーター

  • Report
    型: System. . :: . .String
    ファイル名と .rdl ファイル名拡張子を含む、レポートの完全修飾 URL です。
  • Definition
    型: array<System. . :: . .Byte> [] () [] []
    登録するレポート定義です。XML データは、https://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition/ レポート定義言語によって定義されています。

戻り値

型: array<ReportService2006. . :: . .Warning> [] () [] []
レポート定義の検証時に発生した警告を表す Warning オブジェクトの配列です。

説明

Report パラメーターの長さは、260 文字以下でなくてはなりません。これを超えると、SOAP 例外がエラー コード rsItemLengthExceeded でスローされます。

Report パラメーターには NULL または空の文字列を指定できません。また、予約文字 : ? ; @ & = + $ , \ * > < | . " を使用することもできません。スラッシュ (/) は、フォルダーの完全なパス名内の各項目を区切るために使用することはできますが、フォルダー名の末尾には使用できません。

レポートのレポート定義を変更すると、レポートの ModifiedBy プロパティ、ModifiedDate プロパティ、および Size プロパティが変更されます。Description プロパティは影響を受けません。レポートの実行設定と既存のスナップショットは変更されません。