简体   繁体   中英

How to write to the SAME excel sheet using JXL API?

I have an excel sheet (located in classpath), which has scenarios to be read and executed.

Once they are executed, I should write back to the SAME excel sheet saying whether the scenario is PASS 'ed or FAIL 'ed.

How can this be accomplished?

( NOTE: I am able to read the excel).

I guess the only way is to create a temporary file of the original file and read the temporary file. Do the validations. Open the original file for writing and display the error message. Finally delete the temporary file :-)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM