共用方式為


ReportingService2005.GetRenderResource 方法

Returns the resource for a specified rendering extension format.

命名空間:  ReportService2005
組件:  ReportService2005 (在 ReportService2005.dll 中)

語法

'宣告
Public Function GetRenderResource ( _
    Format As String, _
    DeviceInfo As String, _
    <OutAttribute> ByRef MimeType As String _
) As Byte()
'用途
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)
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[]

參數

  • Format
    型別:System.String
    The format of the rendering extension for which to retrieve the resource (HTML4.0, XML, IMAGE, and so on). For a list of available rendering extensions, use the ListExtensions method.
  • DeviceInfo
    型別:System.String
    The device-specific settings used by the rendering extension.
  • MimeType
    型別:System.String%
    [out] The MIME type of the resource.

傳回值

型別:array<System.Byte[]
The rendering extension resource as a Base 64-encoded byte array. For more information about this data type, see "Byte Structure" in the Microsoft .NET Framework documentation.

備註

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 將裝置資訊設定傳遞至轉譯延伸模組.

請參閱

參考

ReportingService2005 類別

ReportService2005 命名空間