Giter Site home page Giter Site logo

fanyiheng / html2excel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liaochong/myexcel

0.0 0.0 0.0 549 KB

Html2excel,是一个以Html作为模板来导出Excel的工具包!

Home Page: https://github.com/liaochong/html2excel/wiki

License: Apache License 2.0

Java 91.22% FreeMarker 0.33% HTML 8.45%

html2excel's Introduction

Html2excel--Excel导出新方式

Build Status Maven Central License Average time to resolve an issue Percentage of issues still open

使用示例参考请移步:示例

简介 | Brief introduction

Html2excel,是一个以Html作为模板来导出Excel的工具包。可直接使用Html文件,或者使用内置的Freemarker、Groovy、Beetl等模板引擎Excel构建器生成的Html文件,以Html文件中的Table作为Excel模板来生成任意复杂布局的Excel的工具包,支持.xls、.xlsx格式,支持对背景色、边框、字体等进行个性化设置,支持合并单元格,同时也提供了简单列表形式的Excel构建器,方便快捷导出美观、海量数据的Excel。

Html2excel is a toolkit for exporting Excel using Html as a template. You can use the Html file directly, or use the built-in Html file generated by the template engine Excel builder such as Freemarker, Groovy, Beetl, etc., and use the Table in the Html file as an Excel template to generate an Excel toolkit of arbitrary complex layout, supporting .xls, The .xlsx format supports personalization of background colors, borders, fonts, etc., supports merging of cells, and also provides a simple list of Excel builders for easy and efficient export of beautiful, massive data in Excel.

优点 | Advantages

  • 可生成任意复杂表格:本工具使用迭代单元格方式进行excel绘制,可生成任意复杂度excel,自适应宽度、高度;
  • 零学习成本:使用html作为模板,学习成本几乎为零;
  • 支持常用背景色、边框、字体等样式设置:具体参见文档-Style-support(样式支持)部分;
  • 支持.XLS、.XLSX:支持生成.xls、.xlsx后缀的excel;
  • 支持低内存SXSSF模式:支持低内存的SXSSF模式,可利用极低的内存生成.xlsx;
  • 支持生产者消费者模式导出:支持生产者消费者模式导出,无需一次性获取所有数据,分批获取数据配合SXSSF模式实现真正意义上海量数据导出;
  • 支持多种模板引擎:已内置Freemarker、Groovy、Beetl等常用模板引擎Excel构建器(详情参见文档Getting started),默认内置Beetl模板引擎(推荐引擎,Beetl文档);
  • 提供默认Excel构建器,直接输出简单Excel:无需编写任何html,已内置默认模板,可直接根据POJO数据列表输出;
  • 支持一次生成多sheet:以table作为sheet单元,支持一份excel文档中多sheet导出;

文档 | Document

https://github.com/liaochong/html2excel/wiki

联系以及问题反馈 | Contact me

如本项目对您有所帮助,烦请点击上方star或者在下方扫码支付任意金额以鼓励作者更好地开发,十分感谢您的关注!

html2excel's People

Contributors

liaochong avatar xuqin1 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.