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

我只是一个虾纸丫 提交于 2019-12-19 11:57:08

问题


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).


回答1:


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 :-)



来源:https://stackoverflow.com/questions/2311199/how-to-write-to-the-same-excel-sheet-using-jxl-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!