ActiveReports 19 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.Document Namespace / PageDocument Class / Render Method / Render(IRenderingExtension,StreamProvider) Method
Rendering extension to use to render a report.
The GrapeCity.ActiveReports.Extensibility.Rendering.IO.StreamProvider to store the rendered report output.
Example

In This Topic
    Render(IRenderingExtension,StreamProvider) Method
    In This Topic
    Renders a report using the specified rendering extension and output configuration.
    Syntax
    'Declaration
     
    Public Overloads Sub Render( _
       ByVal renderingExtension As IRenderingExtension, _
       ByVal streams As StreamProvider _
    ) 
    public void Render( 
       IRenderingExtension renderingExtension,
       StreamProvider streams
    )

    Parameters

    renderingExtension
    Rendering extension to use to render a report.
    streams
    The GrapeCity.ActiveReports.Extensibility.Rendering.IO.StreamProvider to store the rendered report output.
    Exceptions
    ExceptionDescription
    Thrown if the renderingExtension or streams is null.
    Thrown if a report-specific error occured.
    Thrown when a component cannot be granted a license.
    Thrown if validation problems occurred.
    Thrown when an error related to a report's parameter occurs.
    Thrown in a thread upon cancellation of an operation that the thread was executing.
    Example
    var renderingExtension = new GrapeCity.ActiveReports.Export.Excel.Page.ExcelRenderingExtension();
    DirectoryInfo di = new DirectoryInfo(@"D:\Report");
    FileStreamProvider stream = new FileStreamProvider(di, "MyReport");
    pageReport.Document.Render(renderingExtension, stream);
    See Also