Code Monkey home page Code Monkey logo

easyxls's Introduction

easyxls

Maven Central GitHub release license Jar Size

环境

  • JDK 7

如何使用

  • 添加dependency到POM文件::
<dependency>
    <groupId>cn.4coder</groupId>
    <artifactId>easyxls</artifactId>
    <version>0.0.3</version>
</dependency>
  • 效果:

image

  • 编码:
//默认sheet
Workbook w = new Workbook("test");
w.addTitle("删掉");
w.addTitle("订单");
w.addData("sdf", 1214);
w.addData("sdf", 679);

//增加一个sheet
Sheet sheet = w.addSheet("test1");
sheet.addTitle("大小");
sheet.addTitle("多少");
sheet.addData("sdfsdg", 234, "abc");
sheet.addData("sdfsdg2", 2234, "abcd");

//保存
w.write(new FileOutputStream(new File("d://sdff.xlsx")));
w.close();

easyxls's People

Contributors

yydf avatar

Watchers

James Cloos 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.