如何使用JXL API写入SAME excel表? [英] How to write to the SAME excel sheet using JXL API?

查看:137
本文介绍了如何使用JXL API写入SAME excel表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



一旦执行完毕,我应该回写到 SAME excel表格,说明该方案是否为 PASS 'ed或 FAIL



如何实现?



注意:我可以阅读excel)。

解决方案

我想唯一的办法是创建原始文件的临时文件并读取临时文件。做验证。打开原始文件进行写入并显示错误信息。最后删除临时文件: - )


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

这篇关于如何使用JXL API写入SAME excel表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆