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
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.