Poi is an API provided by Apache for processing files such as Excel.
1. Download the JAR File
Http://poi.apache.org/download.html#POI-3.7
The current stable version is 3.7.
Development and download in window:Poi-bin-3.7-20101029.zip
2. decompress the package.
3. Create a project under eclipse.
Import the following JAR files to the project.
Jar files in the root directory
Jar files under the lib directory
Today in the company need to do a import Excel file function, so the study, the reference on the Internet some of the information is finally done, in this record to prevent later forget how to get.I use poi3.8, so I need the jar package as follows:Poi-3.8.jarPoi-excelant-3.8-20120326.jarPoi-ooxml-3.8-20120326.jarPoi-ooxml-schemas-3.8-20120326.jarPoi-scratchpad-3.8-20120326.jarXmlbeans-2.3.0.jarAttached to t
Don't talk nonsense, post codeIntroduction Rack Pack: Poi-3.12-20150511.jar Poi-ooxml-3.12-20150511.jarPipe network can be downloadedTry{flogicdatasetJava Apache POI export Excel
Apache POI is an open source Java project that reads and writes Microsoft OLE2 component documents such as Excel, Word, and so on. Currently the POI has a ruby version.Structure:
HSSF-provides the ability to read and write Microsoft Excel xls format files.
XSSF-provides the ability to read and write Microsoft Excel OOXML xlsx format files.
HWPF-provid
First, IntroductionHSSF is the implementation of the POI project's pure Java EXCEL97 (-2007) file format. XSSF is a Java implementation of the POI project's Excel OOXML (. xlsx) file format. HSSF and XSSF provides several ways to read spreadsheets to create, modify, read, and write XLS spreadsheets.It provides the following features:
Low-level structure
Apache.org provides a project (poi) dedicated for office software operations. This greatly facilitates the operation and reading of the content for statistical analysis. Ingress is poi-bin-3.7-20101029.zipComponent APIsExcel (SS = HSSF + XSSF)Word (HWPF + XWPF)PowerPoint (HSLF + XSLF)OpenXML4J (OOXML)OLE2 Filesystem (POIFS)OLE2 Document Props (HPSF)Outlook (HSMF)
I,
Poi is a sub-project of Apache. It aims to provide Java APIs packages for operations on various documents based on ooxml (Microsoft Office open XML) and ole2 (Object Linking and Embedding. This project is divided into several components, including a component called hwpf, which can only operate on Word files. This is the component I will use. The full name of hwpf is horrible word processor format. Tra
1: First Import all packages under the Poi-3.12-beta1 sibling directory, and then import all the packages under the Ooxml-lib folder2:New tocsv (); Tcsv.convertexceltocsv ("c:\\users\\administrator\\desktop\\bigdata\\simpheno.xlsx", "C:\\ Users\\administrator\\desktop\\bigdata ");These two groups are sufficient to generate a CSV file that can be read correctly in the generated CSV fil
I. Overview1. Apache POI is an open source library of the Apache Software Foundation, where POI provides the ability for Java programs to read and write to Microsoft Office format files.2. StructureHSSF-Provides the ability to read and write Microsoft Excel xls format files. XSSF-Provides the ability to read and write Microsoft Excel OOXML xlsx format files. HWPF
Before the introduction of the text to everyone to say what poi mean.
Due to the work of the relationship, often in the document will be seen in the poi of the three-letter abbreviation, but has been POI's concept and meaning has not been very detailed to study the meaning behind the representative. Today before work, and saw the POI these three letters, decided
1, the required jar packagePoi-3.6.jarPoi-ooxml-3.6.jar2, M.java PackageJUnit;ImportJava.io.FileInputStream;Importjava.io.IOException;ImportJava.io.InputStream;Importjava.util.ArrayList;ImportJava.util.HashMap;Importjava.util.List;ImportJava.util.Map;ImportOrg.apache.poi.hssf.usermodel.HSSFRow;ImportOrg.apache.poi.hssf.usermodel.HSSFSheet;ImportOrg.apache.poi.hssf.usermodel.HSSFWorkbook; Public classM { Public Static voidMain (string[] args)throwsIOEx
Use Apache POI in Java to generate excel and Word documents
Overview:
Recently, when I was working on a project, I encountered the excel data export and word text table report export functions. Finally, I decided to use Apache POI to complete this function. This article shares some ideas and code in the project implementation process, and also serves as a summary for future use.
Function:
1. Export the que
I. Basics of Excel
Ii. Overview of hssf
3. Reading files through usermodel
4. Writing files through usermodel
5. Reading files through eventusermodel
Vi. hssf workbook Structure
7. Reading document attributes through hpsf
VIII. Document Summary
IX. Appendix
There are already too many other
Body:
There are already too many other
In the previous article, we introduced the basic concepts of the poi project, learned how to use
This article mainly explains how to search through the Baidu Map API to get all the poi in a city. It is necessary to emphasize the word "all" in order to attract attention, because in the search for POI, the default returns only one page of 10 search results, then how to get all the search results? In fact, the Baidu Map API is to provide a relevant method, but I found that a considerable number of netizen
[Android] Baidu map development (2). Positioning city location and city POI searchI. Knowledge about Baidu map city positioning and POI search
The previous article Baidu map development (1) describes how to apply for Baidu APIKey and solve the problem of displaying blank grids. this article mainly describes how to locate the city location, locate your location, and search for the Point of Interest (
Label: style blog HTTP Io OS ar use Java
Apache poi is an open-source library of the Apache Software Foundation. Poi provides APIs for Java programs to read and write Microsoft Office files.
The project must generate an Excel file in this format.
To use poi, download the corresponding jar package to the project. Please search for it by yourself
First, abstract
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.