GithubHelp home page GithubHelp logo

sentryinsurance / doddlereport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthidinger/doddlereport

0.0 0.0 0.0 1.3 MB

Generate custom reports (PDF, Excel, etc) from any IEnumerable datasource.

License: MIT License

ASP 2.54% C# 91.90% CSS 2.38% Pascal 2.76% Batchfile 0.42%

doddlereport's Introduction

Introduction

DoddleReport generates a variety of reports from any IEnumerable datasource.

Out of the box it can render reports to Excel, PDF, HTML, and CSV – fully extensible of course. I designed the project to provide reporting output over the LINQ queries we had already written for the application, but maybe you can find other uses for it.

New to DoddleReport?

  • Look at the Building your first report page
  • If you’re using ASP.NET make sure to check out ASP.NET Reporting section
  • Review the DoddleReport.Sample.Web project in the solution
  • Check out the Wiki for advanced customization and configuration

Find it on NuGet

DoddleReport has been split into multiple packages to support more users’ needs. See their Descriptions within NuGet for more on the differences

Main package

  • Install-Package DoddleReport

ASP.NET integration

  • Install-Package DoddleReport.Web

Additional Report Writers

  • Install-Package DoddleReport.iTextSharp
  • Install-Package DoddleReport.AbcPdf
  • Install-Package DoddleReport.OpenXml

Basic Usage

// Get the data for the report (any IEnumerable will work) 
var query = ProductRepository.GetAll();

// Create the report and turn our query into a ReportSource 
var report = new Report(query.ToReportSource());

// Customize the Text Fields report.TextFields.Title = "Products Report";
report.TextFields.SubTitle = "This is a sample report showing how Doddle Report works";
report.TextFields.Footer = "Copyright 2016 © The Doddle Project";

// Render hints allow you to pass additional hints to the reports as they are being rendered 
report.RenderHints.BooleanCheckboxes = true;

// Customize the data fields report.DataFields["Id"].Hidden = true;
report.DataFields["Price"].DataFormatString = "{0:c}";
report.DataFields["LastPurchase"].DataFormatString = "{0:d}";

Live Samples!

To showcase the functionality take a look at the following sample reports, which are being generated live in real-time (notice the data will change every time you open the report)

Excel Report (OpenXML)

  • Creates a native Excel file using OpenXML
  • Requires the DoddleReport.OpenXml package
  • Automatic Sticky/Frozen Headers stay at the top when scrolling through the data
  • See it live!

doddlexlsreport

PDF Reports

Using iTextSharp

  • Automatically repeats title and column headers numbers on every page
  • Requires the DoddleReport.iTextSharp package
  • See it live!

Using ABCpdf

  • Automatically repeats title and column headers numbers on every page
  • Requires the DoddleReport.AbcPdf package
  • Requires an ABCpdf license
  • See it live!

image

CSV/Delimited

doddleTxtReport

HTML Report

doddleHtmlReport

doddlereport's People

Contributors

matthidinger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.