ExcelReportGenerator
StockSharp.Reporting
The report generator for the strategy in the Excel format.
Inherits: BaseReportGenerator
Constructors
ExcelReportGenerator(IExcelWorkerProvider, ReadOnlyMemory<byte>)
The report generator for the strategy in the Excel format.
- provider
- IExcelWorkerProvider.
- template
- The template bytes to be copied into report and filled. Thread-safe for parallel use.
Properties
Template : ReadOnlyMemory<byte>
The template bytes to be copied into report and filled.
Methods
GetTemplate() : byte[]
Gets the embedded template from resources as byte array.
Returns: Template bytes, or empty if not found.
OnGenerate(IReportSource, Stream, CancellationToken) : ValueTask
Generates the report content.
- source
- IReportSource.
- stream
- The stream to write the report to.
- cancellationToken
- CancellationToken.
SwitchSheet(IExcelWorker, string, string)
Switch to sheet by localized name, falling back to English name if not found.