apache-poi

Browse Excel file With Java Apoi

坚强是说给别人听的谎言 提交于 2020-04-17 21:58:48
问题 Hello i try to brows excel file with spring boot but i get the first line in database so what i shoul to do to add other line in my database with this code i jsut get the first row , i need to import all row in my database please what i need to do the file is become to front end react js upload file the code is : @PostMapping("/upload") public ResponseEntity<?> addRfp (@RequestParam("file") MultipartFile file) throws IOException, InvalidFormatException { ZipSecureFile.setMinInflateRatio(0);

Browse Excel file With Java Apoi

喜你入骨 提交于 2020-04-17 21:51:12
问题 Hello i try to brows excel file with spring boot but i get the first line in database so what i shoul to do to add other line in my database with this code i jsut get the first row , i need to import all row in my database please what i need to do the file is become to front end react js upload file the code is : @PostMapping("/upload") public ResponseEntity<?> addRfp (@RequestParam("file") MultipartFile file) throws IOException, InvalidFormatException { ZipSecureFile.setMinInflateRatio(0);

APACHE POI : Export problem from linux and reading from windows

只谈情不闲聊 提交于 2020-04-17 07:18:48
问题 I have the following method which exports table data values in a XLSX file. public static void export(String filePath, Collection<String> variableNamesList, List<Map<GroupByStruct, List<List<String>>>> tablesToExportList) { BufferedOutputStream fileOutputStream = null; if (filePath.endsWith(XLS_EXTENSION)) { filePath = filePath.replace(XLS_EXTENSION, XLSX_EXTENSION); } if (!filePath.endsWith(XLS_EXTENSION) && !filePath.endsWith(XLSX_EXTENSION)) { filePath = filePath + XLSX_EXTENSION; }

APACHE POI : Export problem from linux and reading from windows

纵饮孤独 提交于 2020-04-17 07:18:48
问题 I have the following method which exports table data values in a XLSX file. public static void export(String filePath, Collection<String> variableNamesList, List<Map<GroupByStruct, List<List<String>>>> tablesToExportList) { BufferedOutputStream fileOutputStream = null; if (filePath.endsWith(XLS_EXTENSION)) { filePath = filePath.replace(XLS_EXTENSION, XLSX_EXTENSION); } if (!filePath.endsWith(XLS_EXTENSION) && !filePath.endsWith(XLSX_EXTENSION)) { filePath = filePath + XLSX_EXTENSION; }

Apache POI numbered list

自作多情 提交于 2020-04-13 18:34:04
问题 I am using apache-poi to write some data in a MS Word document. I've already spent several hours trying to figure out how to create a numbered list but I haven't achieved any results. I've gone through this, that and multiple other questions. Taking into account that apache-poi has the worst kind of documentation I've ever seen (basically there's no documentation at all) and their classes and methods have absolutely mad names it's too difficult for me to understand such complex examples. Q:

Get name of cell apache poi

余生颓废 提交于 2020-04-10 21:12:48
问题 I have a Cell object, how can I get the name of that cell? Would like a function such as: String name = myCell.getName(); In Excel I have named it in the name box, so I don't want to get 'B4', I would like to get the name such as "InterestRate". Can't find such a method, can I achieve it in some other way? 回答1: To find the named range which is defined to exactly match one cell, you'd want something like: // Get the cell we want to find - A1 for this case Workbook wb = WorkbookFactory.create(

Get name of cell apache poi

浪尽此生 提交于 2020-04-10 21:09:58
问题 I have a Cell object, how can I get the name of that cell? Would like a function such as: String name = myCell.getName(); In Excel I have named it in the name box, so I don't want to get 'B4', I would like to get the name such as "InterestRate". Can't find such a method, can I achieve it in some other way? 回答1: To find the named range which is defined to exactly match one cell, you'd want something like: // Get the cell we want to find - A1 for this case Workbook wb = WorkbookFactory.create(

Inserting XWPFTable in between contents

人盡茶涼 提交于 2020-04-10 06:38:11
问题 HI I would like to insert a XWPFTable in between some contents. The file is content is fixed and file is taken as input. I need the table to be inserted in the specific field. like this: Stack Overflow is a privately held website, the flagship site of the Stack Exchange Network, created in 2008 by Jeff Atwood and Joel Spolsky. Here is the table. The contents continue.It was created to be a more open alternative to earlier question and answer sites such as Experts-Exchange. Thanks The code i

Inserting XWPFTable in between contents

喜夏-厌秋 提交于 2020-04-10 06:38:06
问题 HI I would like to insert a XWPFTable in between some contents. The file is content is fixed and file is taken as input. I need the table to be inserted in the specific field. like this: Stack Overflow is a privately held website, the flagship site of the Stack Exchange Network, created in 2008 by Jeff Atwood and Joel Spolsky. Here is the table. The contents continue.It was created to be a more open alternative to earlier question and answer sites such as Experts-Exchange. Thanks The code i

How to extract a list of external references from a excel file

故事扮演 提交于 2020-03-20 06:43:46
问题 I'm working on setting up an automated processing system for a (ever growing) unstructured collection of excel documents. The collection consists of both old-school .xls files and new .xlsx files. In my Java-based solution I am already making use of the Apache POI toolkit to analyse the documents. One challenges that I have not been able to tackle yet, is how to identify links between documents so as to chart dependencies. I have not yet been able to figure out how to conveniently extract a