All Projects → oldrev → maltreport

oldrev / maltreport

Licence: MIT license
A WYSIWYG document template engine to generates .odt/.ods/docx/xlsx/doc/xls documents for .NET

Programming Languages

C#
18002 projects
powershell
5483 projects

Projects that are alternatives of or similar to maltreport

barcode
LibreOffice Barcode Extension
Stars: ✭ 25 (-75.49%)
Mutual labels:  libreoffice
utools-recent-projects
uTools 插件, 快速查询最近打开的项目
Stars: ✭ 84 (-17.65%)
Mutual labels:  libreoffice
opentbs
With OpenTBS you can merge OpenOffice - LibreOffice and Ms Office documents with PHP using the TinyButStrong template engine. Simple use OpenOffice - LibreOffice or Ms Office to edit your templates : DOCX, XLSX, PPTX, ODT, OSD, ODP and other formats. That is the Natural Template philosophy.
Stars: ✭ 48 (-52.94%)
Mutual labels:  libreoffice
LOC-Extension
LibreOffice Cryptocurrency extension
Stars: ✭ 33 (-67.65%)
Mutual labels:  libreoffice
api2pdf.php
PHP client library for the Api2Pdf.com REST API - Convert HTML to PDF, URL to PDF, Office Docs to PDF, Merge PDFs, HTML to Image, URL to Image, HTML to Docx, HTML to Xlsx, PDF to HTML, Thumbnail preview of office files
Stars: ✭ 42 (-58.82%)
Mutual labels:  libreoffice
convert-document
A docker container for LibreOffice and unoconv, used to generate PDF files from office-type documents.
Stars: ✭ 53 (-48.04%)
Mutual labels:  libreoffice
Libreoffice Impress Templates
Freely-licensed LibreOffice Impress templates
Stars: ✭ 238 (+133.33%)
Mutual labels:  libreoffice
BulkPDF
BulkPDF is a free and easy to use open source software, which allows to automatically fill an existing PDF form with differen values. Only a spreadsheet (Microsoft Excel 2007/2010/2013, LibreOffice or OpenOffice Calc) with the desired values is required.
Stars: ✭ 94 (-7.84%)
Mutual labels:  libreoffice
alfresco-share-online-edition-addon
Online edition with Libreoffice in Alfresco Share
Stars: ✭ 15 (-85.29%)
Mutual labels:  libreoffice
financial-forecast
Personal Financial Forecasting Model
Stars: ✭ 24 (-76.47%)
Mutual labels:  libreoffice
rodf
ODF generation library for Ruby
Stars: ✭ 50 (-50.98%)
Mutual labels:  opendocument
loeclipse
LibreOffice Eclipse plugin for extension development
Stars: ✭ 26 (-74.51%)
Mutual labels:  libreoffice
carbone
Fast and simple report generator, from JSON to pdf, xslx, docx, odt...
Stars: ✭ 810 (+694.12%)
Mutual labels:  libreoffice
WollMux
Letterhead, template, form, autotext, mail merge,... extension for LibreOffice
Stars: ✭ 45 (-55.88%)
Mutual labels:  libreoffice
autocorr kr
리브레오피스(LibreOffice) 자동 교정(Autocorrect)기능에 대한 말모이 저장소
Stars: ✭ 15 (-85.29%)
Mutual labels:  libreoffice
noa-libre
UNO API of LibreOffice easy and understandable - Nice Office Access
Stars: ✭ 31 (-69.61%)
Mutual labels:  libreoffice
designing-with-libreoffice
The work to translate Designing with LibreOffice book into traditional Chinese.
Stars: ✭ 17 (-83.33%)
Mutual labels:  libreoffice
libreoffice-starter-extension
LibreOffice Starter Extension
Stars: ✭ 22 (-78.43%)
Mutual labels:  libreoffice
spreadsheet
Yii2 extension for export to Excel
Stars: ✭ 79 (-22.55%)
Mutual labels:  libreoffice
fc-libreoffice
84 MB LibreOffice to fit inside Aliyun Function Compute compressed with Brotli
Stars: ✭ 26 (-74.51%)
Mutual labels:  libreoffice

MaltReport

NuGet Stats Build status Build Status

PLEASE NOTE:

  • At this very moment I'm rewriting the old library, the next coming v3.0 will be a incompatible version;
  • I'm also working on a additional commerce library for the docx/xlsx support, closed-source library for MS-Office seems fair;
  • The super old and buggy OfficeML support will be dropped, the OfficeML format is a legacy from 2003;
  • More real world unit tests, more documents;
  • Check dev branch to track the progress of the incoming v3 series.

MaltReport is an OpenDocument/OfficeOpenXML powered document template engine for .NET and Mono, it is inspired by the excellent Relatorio Project.

There is a briefly introduction in Chinese: MaltReport2 中文使用简介

MaltReport DO NOT REQUIRES MS-Office or LibreOffice to generate document. Instead MaltReport manipulates ODT/ODS/XLS/DOC file by itself, so it could be fast & reliable.

Documents

Getting Started

Prerequisites

  • Visual Studio 2017: This project is written in C# 7.0 using Microsoft Visual Studio 2017 Community Edition.

Supported Platform

  • .NET Framework 4.6.1
  • .NET Standard 1.6+

Installation

MaltReport can be installed from NuGet.

Demo & Usage:

Step 1: Organize your data into Context

var employees = new Employee[]
{
    new Employee{ Name = "Micheal Scott", JobTitle = "Branch Manager" },
    new Employee{ Name = "Pam Beesly", JobTitle = "Office Administrator" },
    new Employee{ Name = "Jim Halpert", JobTitle = "Salesman" },
    new Employee{ Name = "Dwight Schrute", JobTitle = "Salesman" },
    new Employee{ Name = "Andy Bernard", JobTitle = "Salesman" },
};

var image = new ImageBlob("jpeg", File.ReadAllBytes("Image.jpeg"));

var data = new Dictionary<string, object>()
{
    { "employees", employees },
    { "image", image },
};

var context = new TemplateContext(data);

Step 2: Prepare your template

Template

Step 3: Load & render your template

using (var stream = File.OpenRead("EmployeesTemplate.odt"))
{
    var odt = OdfDocument.LoadFrom(stream);
    var template = new OdtTemplate(odt);

    var result = template.Render(context);

    var desktopDir = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
    var outputFile = Path.Combine(desktopDir, "generated.odt");

    result.Save(outputFile);
}

Step 4: Check the generated document out:

Generated Document

License

MaltReport is licensed in the MIT license.

Author: Wei "oldrev" Li [email protected]

  • Copyright (C) 2009 Wei "oldrev" Li
  • Copyright (C) 2010-2016 Sandwych Consulting LLC.
  • Copyright (C) 2017-TODAY Binary Stars Technologies LLC. & Contributors

CREDITS

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].