Compartir a través de


ReportExecutionService.GetRenderResource Método

Returns the resource for a specified rendering extension format.

Espacio de nombres:  ReportExecution2005
Ensamblado:  ReportExecution2005 (en ReportExecution2005.dll)

Sintaxis

'Declaración
Public Function GetRenderResource ( _
    Format As String, _
    DeviceInfo As String, _
    <OutAttribute> ByRef MimeType As String _
) As Byte()
'Uso
Dim instance As ReportExecutionService 
Dim Format As String 
Dim DeviceInfo As String 
Dim MimeType As String 
Dim returnValue As Byte()

returnValue = instance.GetRenderResource(Format, _
    DeviceInfo, MimeType)
public byte[] GetRenderResource(
    string Format,
    string DeviceInfo,
    out string MimeType
)
public:
array<unsigned char>^ GetRenderResource(
    String^ Format, 
    String^ DeviceInfo, 
    [OutAttribute] String^% MimeType
)
member GetRenderResource : 
        Format:string * 
        DeviceInfo:string * 
        MimeType:string byref -> byte[] 
public function GetRenderResource(
    Format : String, 
    DeviceInfo : String, 
    MimeType : String
) : byte[]

Parámetros

  • Format
    Tipo: System.String
    The format of the rendering extension for which to retrieve the resource. A list of supported extensions may be obtained by calling the ListRenderingExtensions method.
  • DeviceInfo
    Tipo: System.String
    The device-specific settings used by the rendering extension.

Valor devuelto

Tipo: array<System.Byte[]
The rendering extension resource as a Base 64-encoded byte array.

Comentarios

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

None

SharePoint Mode Required Permissions

None

The DeviceInfo argument passed to this method must be the same as that specified in the call to the Render method.

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 Pasar la configuración de información de dispositivo a las extensiones de representación.

Vea también

Referencia

ReportExecutionService Clase

Espacio de nombres ReportExecution2005