Poi-excep API

Source: Internet
Author: User
Tags microsoft outlook

I. Overview
1. 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. 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-Provides the ability to read and write Microsoft Word doc format files.
HSLF-Provides the ability to read and write files in Microsoft PowerPoint format.
HDGF-Provides the ability to read files in Microsoft Visio format.
HPBF-Provides the ability to read files in Microsoft Publisher format.
HSMF-Provides the ability to read Microsoft Outlook format Archives
    
Second, HSSF code example
1.excel Structure
Hssfworkbook Excel Document Object Introduction
hssfsheet Excel Forms
hssfrow lines of Excel
Hssfcell Excel's lattice unit
Hssffont Excel Fonts
hssfname name
Hssfdataformat Date Format
Add the following 2 items to the poi1.7:
Hssfheader sheet Head
hssffooter Sheet Tail
Hssfcellstyle cell style
secondary operations include
Hssfdateutil Date
Hssfprintsetup Printing
hssferrorconstants error message Table

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.