All Projects → mikemajesty → StormReport

mikemajesty / StormReport

Licence: MIT license
🌀 Library - Create your reports using only annotations

Programming Languages

C#
18002 projects
HTML
75241 projects

Projects that are alternatives of or similar to StormReport

X.Web.Sitemap
Simple sitemap generator for .NET
Stars: ✭ 66 (+288.24%)
Mutual labels:  asp-net-core, asp-net, aspnet-mvc
Openvasreporting
OpenVAS Reporting: Convert OpenVAS XML report files to reports
Stars: ✭ 42 (+147.06%)
Mutual labels:  excel, reporting, report
AspNetCore-Dynamic-Permission
Dynamic Permission Samples in ASP.NET Core and ASP.NET MVC 5.
Stars: ✭ 19 (+11.76%)
Mutual labels:  asp-net-core, asp-net, aspnet-mvc
SQRL-For-Dot-Net-Standard
SQRL for the .Net Standard runtimes. Secure Quick Reliable Login is a highly secure user privacy based authentication system that removes the need for users to have more than one password for a global identity https://www.grc.com/sqrl/sqrl.htm for more information of the protocal.
Stars: ✭ 26 (+52.94%)
Mutual labels:  asp-net-core, asp-net
SimpleSocial
A simple social network web application using ASP.NET Core 3.1
Stars: ✭ 16 (-5.88%)
Mutual labels:  asp-net-core, asp-net
NClient
💫 NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Stars: ✭ 25 (+47.06%)
Mutual labels:  asp-net-core, asp-net
csharp
📚 Recursos para aprender C#
Stars: ✭ 37 (+117.65%)
Mutual labels:  asp-net-core, asp-net
Cake-Shop
A sample Cake Shop Website built with ASP.NET Core (Multi-Page Application)
Stars: ✭ 44 (+158.82%)
Mutual labels:  asp-net-core, asp-net
ExcelExport
Classes to generate Excel/CSV Report in ASP.NET Core
Stars: ✭ 39 (+129.41%)
Mutual labels:  excel, asp-net-core
Awesome-Nuget-Packages
📦 A collection of awesome and top .NET packages sorted by most popular needs.
Stars: ✭ 87 (+411.76%)
Mutual labels:  asp-net-core, asp-net
Asp-net-Core-Project-with-Admin-Template-Setup
AdminLTE Template Setup with Asp.net Core MVC 2.1 Project
Stars: ✭ 50 (+194.12%)
Mutual labels:  asp-net-core, asp-net
Samples-ASP.NET-MVC-CSharp
ASP.NET MVC C# samples for Stimulsoft Reports.Web reporting tool.
Stars: ✭ 31 (+82.35%)
Mutual labels:  excel, reporting
I18N
I18N Library for .NET, and Delphi
Stars: ✭ 48 (+182.35%)
Mutual labels:  asp-net-core, asp-net
GPONMonitor
GPON Monitoring tool for Dasan Networks GPON OLTs
Stars: ✭ 26 (+52.94%)
Mutual labels:  asp-net-core, asp-net
Reports.JS
Stimulsoft Reports.JS is a reporting tool for Node.js and JavaScript applications.
Stars: ✭ 33 (+94.12%)
Mutual labels:  excel, reporting
CellReport
CellReport 是一个netcore实现的、以复杂统计报表为核心目标的制作、运行工具。支持数据看板、大屏制作。你可以使用数据库、excel文件、api服务、已有报表等为数据源,通过内置的集合函数组织数据,以类excel界面设计最终呈现结果。
Stars: ✭ 196 (+1052.94%)
Mutual labels:  reporting, report
Samples-NET.Core-MVC-CSharp
ASP.NET Core 2.0 MVC C# samples for Stimulsoft Reports.Web reporting tool.
Stars: ✭ 28 (+64.71%)
Mutual labels:  excel, reporting
adminlte-aspnetcore2-version
Asp.Net Example version of famous and beautiful AdminLTE control panel themes and template.
Stars: ✭ 64 (+276.47%)
Mutual labels:  asp-net-core, asp-net
FastReport.Documentation
FastReport Open Source Documentation
Stars: ✭ 81 (+376.47%)
Mutual labels:  reporting, report
sarna
Security Assessment Report geNerated Automatically
Stars: ✭ 26 (+52.94%)
Mutual labels:  reporting, report

Storm Report - Generate your reports in EXCEL and PDF using only Annotations in ASP NET MVC.

How to install

 Install-Package StormReport

How to use

Entity or DTO

 [ReportTitleStyle(styles: "text-align: center; padding: 5px 0px 5px 0px;")]
 public class MockCustomerTest
 {
     private List<MockCustomerTest> List { get; set; }

     public MockCustomerTest()
     {
         List = new List<MockCustomerTest>();
     }

     [ExportableColumnHeaderName(description: "Customer Name")]
     [ExportableColumnHeaderStyle(styles: "text-align: center; color: black; font-size: 17px; background-color: yellow;")]
     [ExportableColumnContentStyle(styles: "text-align: center; color: black; font-size: 17px;")]
     [ExportableColumnGroup(description: "Customer", styles: "color: white; text-align: center; background-color: gray;")]
     public string Nome { get; set; }

     [ExportableColumnHeaderName(description: "Customer Age")]
     [ExportableColumnHeaderStyle(styles: "text-align: center; color: black; font-size: 17px; background-color: yellow;")]
     [ExportableColumnContentStyle(styles: "text-align: center; color: black; font-size: 17px; mso-number-format:'0.000'")]
     [ExportableColumnGroup(description: "Customer",styles: "color: white; text-align: center; background-color: gray;")]
     [ExportableAddtionalText(description: " Year", direction: AdditionalTextEnum.RIGHT)]
     public int Idade { get; set; }

     [ExportableColumnHeaderName(description: "Customer City")]
     [ExportableColumnHeaderStyle(styles: "text-align: center; color: black; font-size: 17px; background-color: yellow;")]
     [ExportableColumnContentStyle(styles: "text-align: center; color: black; font-size: 17px;")]
     [ExportableColumnGroup(description: "Address",styles: "color: white; text-align: center; background-color: gray;")]
     public string Cidade { get; set; }

     [ExportableColumnHeaderName(description: "Customer State")]
     [ExportableColumnHeaderStyle(styles: "text-align: center; color: black; font-size: 17px; background-color: yellow;")]
     [ExportableColumnContentStyle(styles: "text-align: center; color: black; font-size: 17px;")]
     [ExportableColumnGroup(description: "Address",styles: "color: white; text-align: center; background-color: gray;")]
     public string Estado { get; set; }

     public void Add(MockCustomerTest e)
     {
         List.Add(e);
     }

     public List<MockCustomerTest> GetList()
     {
         return List;
     }
 }

Controller

  public ActionResult GenerateReport()
  {
     var customer1 = new MockCustomerTest
     {
         Cidade = "Ibiúna",
         Estado = "SP",
         Idade = 10,
         Nome = "Mike"
     };
     var customer2 = new MockCustomerTest
     {
         Cidade = "Sorocaba",
         Estado = "SP",
         Idade = 28,
         Nome = "Mike Lima"
     };
     var customerList = new List<MockCustomerTest>();
     customerList.Add(customer1);
     customerList.Add(customer2);
     
     //Excel start
     var rep = new StormExcel(excelTitle: "Customer Description", excelName: string.Format("ExcelCustomerReport-{0}", DateTime.Now));
     rep.CreateExcel(customerList, this.Response);
     //Excel end
     //PDF start
     var rep = new StormPdf(pdfTitle: "Customer Description", pdfName: string.Format("ExcelCustomerReport-{0}", DateTime.Now));
     rep.CreatePdf(customerList, this.Response);
     //pdf end
     
     return View();
  }

Excel column format type.

  mso-number-format:0 - NO Decimals
  mso-number-format:0.000 - 3 Decimals
  mso-number-format:#,##0.000 -	Comma with 3 dec
  mso-number-format:mm/dd/yy -	Date7
  mso-number-format:mmmm\ d,\ yyyy - Date9
  mso-number-format:m/d/yy\ h:mm\ AM/PM - 	D -T AMPM
  mso-number-format:Short Date -	01/03/1998
  mso-number-format:Medium Date	- 01-mar-98
  mso-number-format:d-mmm-yyyy	- 01-mar-1998
  mso-number-format:Short Time	- 5:16
  mso-number-format:Medium Time	- 5:16 am
  mso-number-format:Long Time	- 5:16:21:00
  mso-number-format:Percent	- Percent two decimals
  mso-number-format:0%	- Percent no decimals
  mso-number-format:0.E+00 - 	Scientific Notation
  mso-number-format:@	- Text
  mso-number-format:#\ ???/???	- Fractions up to 3 digits (312/943)
  mso-number-format:\0022£\0022#,##0.00	- £12.76
  mso-number-format:#,##0.00_ ;[Red]-#,##0.00\ - 2 decimals, negative numbers in red and signed

Annotation description

  • ReportTitleStyle(optional): Formats the style of the report title.
  • ExportableColumnHeaderName(required): Column text.
  • ExportableColumnHeaderStyle(optional): Formats the style of the report header.
  • ExportableColumnContentStyle(optional): Formats the style of the report content.
  • ExportableColumnGroup(optional): Formats the column group of the report.
  • ExportableColumnGroup(description: )(optional): Column group text.
  • ExportableColumnGroup(styles: )(optional): Column group style.
  • ExportableAddtionalText(description: )(optional): Aditional description
  • ExportableAddtionalText(direction: )(optional): Text Direction.

Reports example

Excel: link to Excel!

PDF: link to PDF!

C# target

version: 4.0


License

It is available under the MIT license. License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].