Condividi tramite


Metodo GetRenderResource

Restituisce la risorsa per un formato di estensione per il rendering specificato.

Spazio dei nomi  ReportService2005
Assembly:  ReportService2005 (in ReportService2005.dll)

Sintassi

'Dichiarazione
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetRenderResource", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetRenderResource ( _
    Format As String, _
    DeviceInfo As String, _
    <OutAttribute> ByRef MimeType As String _
) As Byte()
'Utilizzo
Dim instance As ReportingService2005
Dim Format As String
Dim DeviceInfo As String
Dim MimeType As String
Dim returnValue As Byte()

returnValue = instance.GetRenderResource(Format, _
    DeviceInfo, MimeType)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetRenderResource", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public byte[] GetRenderResource(
    string Format,
    string DeviceInfo,
    out string MimeType
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetRenderResource", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
array<unsigned char>^ GetRenderResource(
    String^ Format, 
    String^ DeviceInfo, 
    [OutAttribute] String^% MimeType
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetRenderResource", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetRenderResource : 
        Format:string * 
        DeviceInfo:string * 
        MimeType:string byref -> byte[] 
public function GetRenderResource(
    Format : String, 
    DeviceInfo : String, 
    MimeType : String
) : byte[]

Parametri

  • Format
    Tipo: System. . :: . .String
    Formato dell'estensione per il rendering per il quale recuperare la risorsa (HTML4.0, XML, IMAGE e così via). Per un elenco di estensioni di rendering supportate, utilizzare il metodo ListExtensions.
  • DeviceInfo
    Tipo: System. . :: . .String
    Impostazioni specifiche del dispositivo utilizzate nell'estensione per il rendering.

Valore restituito

Tipo: array<System. . :: . .Byte> [] () [] []
Risorsa dell'estensione per il rendering come matrice di byte codificata in Base 64. Per ulteriori informazioni su questo tipo di dati, vedere l'argomento relativo alla struttura dei byte nella documentazione di Microsoft .NET Framework.

Osservazioni

The table below shows header and permissions information on this operation.

SOAP Headers

(Out) ServerInfoHeaderValue

Required Permissions

None

An example of a rendering resource that is returned by the GetRenderResource method is the plus (+) image, which is used to expand groups in the HTML rendering extension. The resource that the method returns depends on the DeviceInfo parameter that is supplied. For more information about device information settings for rendering extensions, see Impostazioni relative alle informazioni sul dispositivo di Reporting Services.