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

In This Topic
    Render(IRenderingExtension,StreamProvider,NameValueCollection) Method
    In This Topic
    Renders a report using the specified rendering extension with the specified values.
    Syntax
    'Declaration
     
    Public Overloads Sub Render( _
       ByVal renderingExtension As IRenderingExtension, _
       ByVal streams As StreamProvider, _
       ByVal settings As NameValueCollection _
    ) 

    Parameters

    renderingExtension
    Rendering extension to use to render a report.
    streams
    The GrapeCity.ActiveReports.Extensibility.Rendering.IO.StreamProvider to store the rendered report output.
    settings
    The System.Collections.Specialized.NameValueCollection that contains the settings for the GrapeCity.ActiveReports.Extensibility.Rendering.IRenderingExtension.
    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
    Settings settings = new Settings();
    settings.HideToolbar = true;
    settings.HideMenubar = true;
    settings.HideWindowUI = true;
    settings.Author = "Joe Smith";
    PdfRenderingExtension renderingExtension = new PdfRenderingExtension();
    DirectoryInfo di = new DirectoryInfo(@"D:\Report");
    FileStreamProvider exportfile = new FileStreamProvider(di, "MyReport");
    pageReport.Document.Render(renderingExtension, exportfile, settings);
    See Also