Método LocalReport.Render (String, String, PageCountMode, CreateStreamCallback, array<Warning %)
Processes the report with a specified page count mode and renders it in the specified format using a stream provided by a callback function.
Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (em Microsoft.ReportViewer.WebForms.dll)
Sintaxe
'Declaração
Public Sub Render ( _
format As String, _
deviceInfo As String, _
pageCountMode As PageCountMode, _
createStream As CreateStreamCallback, _
<OutAttribute> ByRef warnings As Warning() _
)
public void Render(
string format,
string deviceInfo,
PageCountMode pageCountMode,
CreateStreamCallback createStream,
out Warning[] warnings
)
public:
void Render(
String^ format,
String^ deviceInfo,
PageCountMode pageCountMode,
CreateStreamCallback^ createStream,
[OutAttribute] array<Warning^>^% warnings
)
member Render :
format:string *
deviceInfo:string *
pageCountMode:PageCountMode *
createStream:CreateStreamCallback *
warnings:Warning[] byref -> unit
public function Render(
format : String,
deviceInfo : String,
pageCountMode : PageCountMode,
createStream : CreateStreamCallback,
warnings : Warning[]
)
Parâmetros
- format
Tipo: String
The format in which to render the report. This parameter maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image.
To access the list of available rendering extensions, use the ListRenderingExtensions method.
- deviceInfo
Tipo: String
An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see fe718939-7efe-4c7f-87cb-5f5b09caeff4 Device Information Settings in SQL Server Books Online.
- pageCountMode
Tipo: Microsoft.Reporting.WebForms.PageCountMode
A PageCountMode enumeration value that specifies the page count mode. This parameter has no effect on hard page renderers. For more information on soft and hard page renderers, see d57866f5-d876-41ce-bc49-0e72486a9617. Understanding Rendering Behaviors
- createStream
Tipo: Microsoft.Reporting.WebForms.CreateStreamCallback
A CreateStreamCallback delegate function that will be used to provide a Stream object for rendering.
- warnings
Tipo: array<Microsoft.Reporting.WebForms.Warning[]%
[out] An array of Warning objects that describes any warnings that occurred during report processing and rendering.
Comentários
This method accepts a CreateStreamCallback delegate function in the createStream parameter to support custom handling of secondary streams. This method is useful for printing.
After this method completes successfully, the value of pageCountMode affects the page count mode the LocalReport object uses when you call the GetTotalPages method. For more information, see GetTotalPages.