共用方式為


Render 方法

Renders a report in a specific format using the information stored in the properties of the Report object.

命名空間:  Microsoft.ReportingServices.Interfaces
組件:   Microsoft.ReportingServices.SharePoint.UI.WebParts (在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
  Microsoft.ReportingServices.Interfaces (在 Microsoft.ReportingServices.Interfaces.dll 中)

語法

'宣告
Public MustOverride Function Render ( _
    renderFormat As String, _
    deviceInfo As String _
) As RenderedOutputFile()
'用途
Dim instance As Report
Dim renderFormat As String
Dim deviceInfo As String
Dim returnValue As RenderedOutputFile()

returnValue = instance.Render(renderFormat, _
    deviceInfo)
public abstract RenderedOutputFile[] Render(
    string renderFormat,
    string deviceInfo
)
public:
virtual array<RenderedOutputFile^>^ Render(
    String^ renderFormat, 
    String^ deviceInfo
) abstract
abstract Render : 
        renderFormat:string * 
        deviceInfo:string -> RenderedOutputFile[] 
public abstract function Render(
    renderFormat : String, 
    deviceInfo : String
) : RenderedOutputFile[]

參數

  • renderFormat
    型別:System. . :: . .String
    The name of the format that is used to render the report. The format corresponds to one of the available rendering extensions installed on the report server.
  • deviceInfo
    型別:System. . :: . .String
    An XML string that defines a list of extension parameters for the rendering extension that is used to format the report so that it can be delivered correctly based on the requirements of the delivery extension.

傳回值

型別:array<Microsoft.ReportingServices.Interfaces. . :: . .RenderedOutputFile> [] () [] []
An array of RenderedOutputFile objects produced by the rendering extension selected in the renderFormat parameter.

備註

The Render method returns an array of one or more RenderedOutputFile objects that together constitute a single rendered report. The first RenderedOutputFile object is the rendered report, whereas any subsequent RenderedOutputFile objects are resources that must be delivered along with the report data (for example, an HTML file and associated images).