WorkingWithFonts - Apache POI Excel File Example

Q

What is WorkingWithFonts example in the Apache POI package? How to run WorkingWithFonts example?

✍: FYIcenter.com

A

WorkingWithFonts example in the Apache POI package is created by Glen Stampoultzis. It demonstrates how to create and use fonts in *.xls file format.

WorkingWithFonts example uses the HSSF (Horrible SpreadSheet Format) API, which supports Excel files in *.xls format only.

Here is the command to run WorkingWithFonts to generate a sample *.xls file. Note that poi-ooxml.jar is not needed for HSSF API.

C:\fyicenter>\local\jdk-1.8.0\bin\java
   -cp .;C:\local\poi-3.15\poi-examples-3.15.jar;
         C:\local\poi-3.15\poi-3.15.jar;
   org.apache.poi.hssf.usermodel.examples.WorkingWithFonts

If you open the output file, workbook.xls, in Excel, you will see a sample text as shown below:

Apache POI Excel File Example - WorkingWithFonts
Apache POI Excel File Example - WorkingWithFonts

 

BigExample - Apache POI Excel File Example

TimesheetDemo - Apache POI Excel File Example

Apache POI Examples for Excel Files

⇑⇑ FAQ for Apache POI (Poor Obfuscation Implementation)

2017-03-17, 1314🔥, 0💬