Excel export in Java

The function of exporting Excel needs to be used in work. The traditional method is complex and difficult to modify. Here is an encapsulated tool class writing method. You only need to set the entity class, write the corresponding column name in the way of annotation, and then pass in the data set found from the database to export. Let's intro ...

Posted by 4evernomad on Sat, 19 Feb 2022 01:19:47 +0100

java - poi recursively export tree structure Excel, import tree structure Excel, tree structure recursive query, add, modify and delete.

1, Table structure design, import and export templates. Note: the structure of blogger tree is 8-level structure, which is divided into two tables due to business relationship. This table is divided into four levels, and the structure is as follows: Building unit floor room Excel The table item name field is obtained from the first table ...

Posted by harmor on Wed, 09 Feb 2022 10:35:49 +0100

Poi operation Excel table

The workbook is created by creating org apache. poi. ss. usermodel. Created by an instance of workbook. Either directly create a specific class (org.apache.poi.hssf.usermodel.HSSFWorkbook or org.apache.poi.xssf.usermodel.XSSFWorkbook), or use the convenient factory class org apache. poi. ss. usermodel. WorkbookFactory. Worksheets are created ...

Posted by evanluke on Tue, 01 Feb 2022 12:11:32 +0100

Java uses POI to generate Word through template

Java uses POI to generate Word through template preface Recent work needs to be used, so write it down for easy search. 1, Overview The core class used by POI to read and write word is XWPFDocument. An XWPFDocument represents a docx document, which can be used to read or write docx documents. It mainly includes the following objects: XWPF ...

Posted by webslinger on Sat, 29 Jan 2022 10:34:12 +0100

Self made import tool class based on Poi -- update record of version 4.2

Previous review: https://blog.csdn.net/weixin_44718708/article/details/121683066 catalogue 1, Synopsis 2, Scenario requirements 3, Description of new functions 1. @DynamicRank 2. Repeatability test          3. @Transform 4, Optimization description 1. @ExcelNumberFormat 2. Starting mark 3. Prompt information column No 5, GitHub addr ...

Posted by 3dron on Fri, 28 Jan 2022 18:54:29 +0100

Formatting of exporting Excel using poi in Java

Recently, I received a request. The customer was not satisfied with the csv file originally exported and wanted to export an excel file. Don't you just export Excel files? It's a little fun, so you're full of confidence. Pick up the exported code from the Internet, a CV method, and get it done! The code is as follows: import lombok.extern.slf4 ...

Posted by gin on Tue, 18 Jan 2022 07:41:17 +0100

POI - simple reading and writing Excel

Official website address: https://poi.apache.org/ Basic functions: HSSF - provides the ability to read and write documents in Microsoft Excel format. (version 2003, can only store 65536 rows of data at most)XSSF - provides the ability to read and write documents in Microsoft Excel OOXML format. (2007 edition, unlimited data can be stored) 1. ...

Posted by bentobenji on Tue, 07 Dec 2021 12:31:00 +0100

Use of poi, selection of easypoi and easyexcel

The project needs to read excel, get in touch with poi, and use it. Summarize yourself Here, a small demo is written, which is a SpringBoot project. Its main function is to read a total curriculum and then generate the curriculum of the specified class we need Let's take a look at our master schedule first easyexcel When the amount of ...

Posted by lordofgore on Mon, 20 Sep 2021 12:13:03 +0200

Java operations generate Word

Java operations generate Word( poi-tl Implement) Preface There's a recent need to generate Word reports, to count the data and present it as Word. Some implementation techniques have been found online, including apache poi and FreeMarker, but both are slightly inadequate for generating Word. apache poi provides Java programs for MicrosoftThe ...

Posted by trev on Fri, 17 Sep 2021 13:21:27 +0200