ExcelReportGenerator

StockSharp.Reporting

The report generator for the strategy in the Excel format.

Erbt von: BaseReportGenerator

Konstruktoren

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.

Eigenschaften

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.

Methoden

GetTemplate() : byte[]

Gets the embedded template from resources as byte array.

Rückgabe: 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.