Table of Contents

Class Report

Namespace
Balsam.Reporting
Assembly
Balsam.Reporting.dll

Static methods for viewing and saving reports.

public static class Report
Inheritance
Report
Inherited Members

Methods

CreatePdf(IEnumerable<object>, string)

Creates a pdf of the specified TradeStats using the specified file name.

public static void CreatePdf(IEnumerable<object> tradeStats, string fileName)

Parameters

tradeStats IEnumerable<object>
fileName string

CreatePdf(IEnumerable<object>, string, Type)

Creates a pdf of the specified TradeStats using a custom view.

public static void CreatePdf(IEnumerable<object> tradeStats, string fileName, Type snapshot)

Parameters

tradeStats IEnumerable<object>
fileName string
snapshot Type

A WPF control used to display the trade stats.

CreatePdf(IEnumerable<object>, string, Type, Type, bool)

Creates a pdf of the specified TradeStatus using the specified parameters.

public static void CreatePdf(IEnumerable<object> tradeStats, string fileName, Type snapshot, Type viewModel, bool display = false)

Parameters

tradeStats IEnumerable<object>
fileName string
snapshot Type
viewModel Type
display bool

If true starts process to display pdf.

SaveAsPdf(FixedDocument, string)

Saves the specified document to a pdf file using the specified filename.

public static void SaveAsPdf(FixedDocument document, string fileName)

Parameters

document FixedDocument
fileName string

Snapshot(IEnumerable<object>)

Gets a snapshot of the specified TradeStats using the default snapshot view.

public static void Snapshot(this IEnumerable<object> tradeStats)

Parameters

tradeStats IEnumerable<object>

Snapshot(IEnumerable<object>, Type)

Gets a snapshot of the specified TradeStats using the specified view.

public static void Snapshot(IEnumerable<object> tradeStats, Type snapshot)

Parameters

tradeStats IEnumerable<object>
snapshot Type

A WPF control used to display the trade stats.

Snapshot(IEnumerable<object>, Type, Type)

Gets a snapshot of the specified TradeStats using the specified parameters.

public static void Snapshot(IEnumerable<object> tradeStats, Type snapshot, Type viewModel)

Parameters

tradeStats IEnumerable<object>
snapshot Type
viewModel Type