https://github.com/codaxy/codereports
Simple but powerful reporting library
https://github.com/codaxy/codereports
Last synced: 11 months ago
JSON representation
Simple but powerful reporting library
- Host: GitHub
- URL: https://github.com/codaxy/codereports
- Owner: codaxy
- Created: 2011-08-08T09:03:16.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2022-10-20T08:03:32.000Z (over 3 years ago)
- Last Synced: 2025-07-28T19:59:10.174Z (11 months ago)
- Language: C#
- Homepage:
- Size: 647 KB
- Stars: 8
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CodeReports
===========
Code reports is a small, but powerful C# reporting library.
Reports are simple to define using C# classes and attributes and can be output to text, HTML, Excel or PDF.
[GroupingLevel(0, ShowCaption=true, CaptionFormat="{Country}", ShowHeader=true)]
class ReportItem
{
[GroupBy(0, 0, SortDirection = SortDirection.Ascending)]
public String Country { get; set; }
[TableColumn(SortIndex = 0, SortDirection = SortDirection.Descending, CellAlignment=CellAlignment.Left)]
public int Year { get; set; }
[TableColumn(Format = "{0:0,0}")]
public decimal? GDP { get; set; }
[TableColumn(Format = "{0:n}", HeaderText = "GNI Per Capita")]
public decimal? GniPerCapita { get; set; }
[TableColumn(HeaderText="Growth", Format="{0:n}%")]
public decimal? GdpGrowth { get; set; }
}
Too see CodeReports in action check the [Pecunia demo](http://dextop.codaxy.com/pecunia) (section GDP).