Xls_Reader- Unable to write data in the xlsx file using the Xls_Reader | Selenium Forum
B
barik.arun Posted on 05/01/2019

Hi Ashish,

I am getting an error when I try to write any data in the xlsx file . Here is the screenshot.Also to add , the file is getting corrupted ,the data are lost  and  I am not able to open the file even manually .I am  getting an error  message as attached below. Please help me on this as  xlsx reading & writing  is important in all the projects.

 

Error message while opening the xlsx


A
Ashish Thakur Replied on 06/01/2019

You have to make sure that the xlsx file is closed


B
barik.arun Replied on 06/01/2019

I running the code only after the file is closed,still the same error.


A
Ashish Thakur Replied on 09/01/2019

Please zip and send your project

Also the xls file


B
barik.arun Replied on 11/01/2019

Please find the  project & xls file attached.


A
Abhishek Replied on 14/01/2019

I tried importing your code, it worked absolutely fine.

All you need to do is that keep the file in some other drive and it's closed.


A
Ashish Thakur Replied on 23/01/2019

Please implement the suggestion by Abhishek and let us know if you're still facing the issue.