[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.DataBindingWizard.Services.DefaultSampleReportsProvider.GetReportStream

GetReportStream Method

GetReportStream(SampleReportDescriptor)

Gets a stream for the specified report descriptor.

Declaration
public Stream GetReportStream(SampleReportDescriptor reportDescriptor)
Parameters
Type Name Description
SampleReportDescriptor reportDescriptor

The descriptor of the report to retrieve the stream for.

Returns
Type Description
Stream

A Stream representing the report data.

Implements
Examples
ISampleReportsProvider provider = new DefaultSampleReportsProvider("directoryPath");
SampleReportDescriptor reportDescriptor = provider.Reports.First();
Stream reportStream = provider.GetReportStream(reportDescriptor);
Exceptions
Type Condition
FileNotFoundException

Thrown when the report file does not exist.