ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design.DataBindingWizard.Services Namespace / DefaultSampleReportsProvider Class / GetReportStream Method
The descriptor of the report to retrieve the stream for.
Example

In This Topic
    GetReportStream Method (DefaultSampleReportsProvider)
    In This Topic
    Gets a stream for the specified report descriptor.
    Syntax
    'Declaration
     
    Public Function GetReportStream( _
       ByVal reportDescriptor As SampleReportDescriptor _
    ) As Stream
    public Stream GetReportStream( 
       SampleReportDescriptor reportDescriptor
    )

    Parameters

    reportDescriptor
    The descriptor of the report to retrieve the stream for.

    Return Value

    A System.IO.Stream representing the report data.
    Exceptions
    ExceptionDescription
    Thrown when the report file does not exist.
    Example
    ISampleReportsProvider provider = new DefaultSampleReportsProvider("directoryPath");
    SampleReportDescriptor reportDescriptor = provider.Reports.First();
    Stream reportStream = provider.GetReportStream(reportDescriptor);
    See Also