I have an excel workbook where sheet2 contains defined names and sheet 1 is populated based on formulae and data validations.
I need to read sheet1 data using java . When I try fileInputstream and create a new sheet from sheet1 it is creating with formula also hence it is not creating it properly.
Is there a way to directly create a new sheet with only data skipping all formulae?
Creating an Excel file using FileInputStream
will simply create a copy of the relevant file. What you need to do is something different, specific to Excel, so standard file operations are no good. Take a look at either Apache POI or docx4j , both of which can read and manipulate Microsoft Office files.
For example, it's trivial for a piece of docx4j code to iterate a specified worksheet, and extract / clone cell values, ignoring underlying formula.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.