-class Parsing is completed by ASM
Image: Only metadata of images can be extracted.
XML
Processing packages in different formats:
Pdfbox-1.1.0 fontbox-1.1.0
Poi-3.7-20100617171931
Poi-ooxml-3.7-20100617171931 poi-ooxml-schemas-3.7-20100617171931 poi-scratchpad-3.7-20100617171931
Htmlparser-1.6.bundle.jar
Metadata-extractor-2.4.0-beta1.bundle
Useful tools for determining text file encodin
Use poi to read and write Excel and poi to read and write excel
For a programmer, file operations are common, especially for Excel files.
Here I will introduce a POI tool used in the project to Operate Excel. There are many concepts about POI on the Internet. For more information, you can use Baidu. Here I will just give a brief introduction. POI is an apache class library that provides java developers with support for Office file processing (word, ppt, and Excel. Here are some examples to illu
First, take a look at the generated filesSecond, prepareThis article requires six jar packages:Dom4j-1.6.1.jarOjdbc14.jarPoi-3.9-20121203.jarPoi-ooxml-3.9-20121203.jarPoi-ooxml-schemas-3.9-20121203.jarXmlbeans-2.3.0.jarExcept that Ojdbc14.jar is used to access the database, the other is the POI-related jar package that is needed to export Excel.Note: This article is written in poi3.9 version, the use of Sxs
1,
Failure to transfer org. Apache. Poi: poi-ooxml-schemas: jar: 3.10.1 from a http://repo.maven.apache.org/maven2 was cached in the local repository,Resolution will not be reattempted until the update interval of central has elapsed or updates are forced.Original error: cocould not transfer artifact org. Apache. Poi: poi-ooxml-schemas: jar: 3.10.1 from/to central (http://repo.maven.apache.org/maven2 ):Conn
+ /** A * Use POI to manipulate Excel forms at * - * Jar Package Required: - * HSSF for 03 and previous versions, i.e.. xls suffix - * |---poi-3.16.jar - * XSSF for 07 and later versions, the xlsx suffix - * |---poi-3.16.jar in * |---poi-ooxml.3.16.jar - * |---poi-ooxml-schemas-3.16.jar to * |---xmlbeans-2.6.0.jar + * |---commons-collections4-4.1.jar - * the * Workbook: Workbook * * Worksheet: Sheet $ *
Introduction: In Java, the use of POI to read and parse Excel is a common practice; there are 2007,2003 two different formats in Office Excel, often differentiated by different suffixes of xls/xlsx, but users may not know the difference, Therefore, there will be an incompatible format exception1. POIPoi originates from the Apache Foundation, is its top-level domain project, and POI provides APIs to Java programs to read and write to Microsoft Office format archives.2. Differences between Excel 2
Poi-3.9-20121203.jarPoi-ooxml-3.9-20121203.jarPoi-ooxml-schemas-3.9-20121203.jarStax-api-1.0.1.jarXmlbeans-2.3.0.jarThe above several jar package is indispensable, sometimes there will be classnotfound and other errors, because the jar is missing or incompatible reasons, the above jar package has been tested, can be used.Read the Excel file code as follows:public class Excelutils {Provides an interface for
1. http://poi.apache.org/download required jar get Poi-bin-3.9-20121203.zip decompression
2. Import the required Jar:poi-ooxml-3.9-20121203.jar,poi-scratchpad-3.9-20121203.jar, Xmlbeans-2.3.0.jar,
Dom4j-1.6.1.jar,poi-3.9-20121203.jar,poi-ooxml-schemas-3.9-20121203.jar
3.http://wenku.baidu.com/view/b357ccac6bec0975f465e24a.html explanation of the comparative full
4. Solve a variety of different style prob
directory service and the Ldao server
Log4j-1.2.15.jar
Provides logging functionality
Mail.jar
Java Send mail jar package
Neethi-2.0.4.jar
Use the jar package required by CXF
Odmg-3.0.jar
ODMG is an ORM specification, Hibernate implements the ODMG specification, which is a core library
Ognl-2.6.11.jar
Ognl language in Struts2
Ojdbc14.jar
Oracle Database Driver Package
Opensaml-1.1.jar
For a programmer, file operations are frequently encountered, especially for Excel files.
Here is a brief introduction to the tool I used in my project,--poi, for Excel. About the concept of poi, a lot of online, detailed information you can own Baidu, I only do a brief introduction here. POI is an Apache class library that provides Java developers with support for processing Office files (Word, ppt, Excel). I'll give you a few examples to illustrate this.
Preparatory work
The version I use is
common interface and Excel formula calculation engine
Npoi. Dll
Npoi. Util
The base Class library, which provides a number of practical features that can be used in the development of other read/write file format projects
Npoi. OOXML. Dll
Npoi. Xssf
Excel 2007 (XLSX) format read-write library
Npoi. OOXML. Dll
Npoi. Xwpf
Word 2007 (docx) format rea
Monitor reports export Excel summary based on POI
Poi manipulating Excel objects
HSSF: Manipulating Excel (. xls) format
XSSF: Manipulating Excel 2007 OOXML (. xlsx) format to manipulate Excel memory usage above HSSF
SXSSF: Support from POI3.8 Beta3, based on XSSF, low memory footprint.
1. Principle of realization
Based on the Excel configuration template for report export, to achieve the export of Excel fields flexible configuration and format rich
C # WebForm uses NPOI 2 to generate a simple wordfile (.docx ),
With NPOI, you can easily read and write Word and Excel files on the server. To perform read/write operations on Word, you must reference NPOI. OOXML. dll and apply the namespace XWPF.
This article uses NPOI 2.0 to generate and download the Word. NOPI 2.0: http://npoi.codeplex.com/downloads/get/764162
Although the latest version is NPOI 2.1.1, when I use NPOI.
. jarLibdocbundle. jarLibfonts. jarLibformat. jarLibformula. jarLibloader. jarLibrepository. jarLibserializer. jarLibxml. jarLibswing. jarPentaho-reporting-engine-classic-core.jarPentaho-reporting-engine-classic-extensions.jar
The jar package corresponding to the report engine. libswing. jar is added to version 5.1. Each jar file name ends with a version. required;
Commons-logging-api.jar
Log usage, required;
Poi-3.9.jarPoi-ooxml
();Cs. setWrapText (true );Cell. setCellStyle (cs );// Add the Row Height to adapt to the height of the two lines of text, and set the height unit (pixel)Row. setHeightInPoints (2 * sheet. getDefaultRowHeightInPoints ()));// Adjust the column width to adapt to the contentSheet. autoSizeColumn (short) 2 );// Write a fileFileOutputStream fileOut = new FileOutputStream ("ooxml-newlines.xlsx ");Wb. write (fileOut );FileOut. close ();
// Create an Excel f
Recent projects need to read encrypted Excel, there are two types of XLS and xlsx, for the encryption and decryption Apache official website has a brief descriptionRequired jar Package Poi-3.9,jar Poi-ooxml-3.9.jar Poi-ooxml-schemas-3.9.jar Xmlbeans-2.3.0.jar Dom4j-1.6.1.jarNote that the 3 Jar version number of the POI should correspond, or there will be some problems.On the Code ~ /** * Excel Import */@
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.