Implementing Excel Import and Export with Apache POI

In many business application developments, there's often a need to implement Excel import and export functionality. This article provides a comprehensive guide on how to accomplish this using Apache POI, a popular Java library for working with Microsoft Office documents. Apache POI Overview Microsoft Excel has long been a preferred tool for dat ...

Posted on Sat, 12 Sep 2026 16:07:26 +0000 by lesmith

Exporting Database Query Results to Excel in Java

To export data from a database query into an Excel file using Java, you can leverage Apache POI to generate the spreadsheet and populate it with query results. public class DataExporter { @Autowired private RecordMapper recordMapper; public void exportToExcel() { File outputFile = new File("/home/vlog/report.xls" ...

Posted on Fri, 21 Aug 2026 16:23:14 +0000 by PowersWithin

Working with Microsoft Office Files Using Apache POI in Java

Apache POI is a Java library for reading and writing Microsoft Office binary and OOXML file formats. This article covers the necessary Maven dependencies, a summary of its components, and practical code examples for creating Excel workbooks. Maven Dependencies Include the following dependencies for Excel (XLS and XLSX), Word, PowerPoint, Visio, ...

Posted on Sat, 23 May 2026 17:39:53 +0000 by douga

Efficient Excel Automation with Apache POI: Writing, Parsing, and Scaling Workloads

Core Abstractions and Format Distinctions Apache POI models spreadsheet documents through four hierarchical interfaces: Workbook (the complete file), Sheet (individual tabs), Row, and Cell. When targeting legacy binary specifications (.xls), the HSSF engine is utilized. For contemporary XML-based workbooks (.xlsx), the XSSF model applies. A cri ...

Posted on Thu, 14 May 2026 03:48:25 +0000 by aruns