Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ExportAnalysisController.StreamProvider Property

Specifies a stream provider that is used by the ExportAnalysisController to create the required stream for the exported data.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public IStreamProvider StreamProvider { get; set; }

#Property Value

Type Description
DevExpress.ExpressApp.SystemModule.IStreamProvider

An IStreamProvider object that is used to create the required stream for the exported data.

#Remarks

When the ExportAnalysisController.ExportAction is executed, the ExportAnalysisController uses the stream provider specified by this property to create a stream for the exported data. The WinExportAnalysisController, which is a descendant of the ExportAnalysisController class, creates a FileStreamProvider. This stream provider creates a file stream after showing a Save File Dialog and getting the required name for the file. The WebExportAnalysisController, which is a descendant of the ExportAnalysisController class as well, creates a MemoryStreamProvider. This stream provider creates a memory stream for the exported data.

If another stream type is required for a Windows Forms or ASP.NET Web Forms application, implement a custom StreamProvider class supporting the IStreamProvider interface. Set an instance of this class to the StreamProvider property in your Windows Forms or ASP.NET Web Forms specific Controller. To get the ExportAnalysisController in your Controller, use the Frame.GetController<ControllerType> method.

See Also