I am trying to make a program through which i want to manipulate data in the excel sheet, But data is being manipulated only when the excel sheet is open. whats the process to open and close it using java coding.
You can use POI to read and write Excel sheets.
This article is interesting to understand how to use it :
Hey look, there's a tutorial on how to do this link from the JExecel website!
http://www.andykhan.com/jexcelapi/tutorial.html
Side note: It looks like JExcel is file based only. This means you can't interact with an open spreadsheet. If you need to interact with an open spreadsheet you will have to use JNI or a library such as J-Integra COM , which uses JNI.
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.