ExcelReportGenerator

StockSharp.Reporting

The report generator for the strategy in the Excel format.

Наследует: BaseReportGenerator

Конструкторы

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.

Свойства

Decimals : int

The number of decimal places for formatting. By default, it equals to 2.

Extension : string

Extension without leading dot char.

Name : string

Name.

Template : ReadOnlyMemory<byte>

The template bytes to be copied into report and filled.

Методы

GetTemplate() : byte[]

Gets the embedded template from resources as byte array.

Возвращает: 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.