Class KeyValueReport
Key value report (Storing it's won sql, get's filled over parameter)
Inheritance
Inherited Members
Namespace: Simplic.Reporting
Assembly: Simplic.Reporting.dll
Syntax
public class KeyValueReport : IReport, IPrintable
Constructors
| Improve this Doc View SourceKeyValueReport()
Create a new SqlReport and initialize all important things
Declaration
public KeyValueReport()
Properties
| Improve this Doc View SourceConfiguration
Gets the report configuration
Declaration
public IReportConfiguration Configuration { get; }
Property Value
Type | Description |
---|---|
IReportConfiguration |
Report
Instance of the current report
Declaration
public Telerik.Reporting.Report Report { get; }
Property Value
Type | Description |
---|---|
Telerik.Reporting.Report |
ReportSource
Get the current report source. Currently this is always an XmlReportSource
Declaration
public ReportSource ReportSource { get; }
Property Value
Type | Description |
---|---|
ReportSource |
Methods
| Improve this Doc View SourceFill<T>(T)
Create a report source and fill it
Declaration
public void Fill<T>(T obj)
Parameters
Type | Name | Description |
---|---|---|
T | obj | Instance of an SqlDataSourceModel |
Type Parameters
Name | Description |
---|---|
T | Type of the report source. Default should be SqlDataSource |
Fill<T>(IList<T>)
Fill with list of objects. Currently not supported for KeyValueReports
Declaration
public void Fill<T>(IList<T> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<T> | list | List of objects |
Type Parameters
Name | Description |
---|---|
T | Type |
Load(IReportConfiguration)
Load report as stream. Currently only Telerik Xml Reports are supported
Declaration
public void Load(IReportConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IReportConfiguration | configuration | Fill report with configuration information |
Print(PrinterDevice)
Print the current report
Declaration
public void Print(PrinterDevice device)
Parameters
Type | Name | Description |
---|---|---|
PrinterDevice | device | Device which should be used for printing |
RenderReport(ReportRenderFormat)
Render the currently loaded report in a specific format
Declaration
public Stream RenderReport(ReportRenderFormat format)
Parameters
Type | Name | Description |
---|---|---|
ReportRenderFormat | format | Output format |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream containing the rendered report |