Click here to Skip to main content
15,922,696 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey I am using ExcelFormat Library for reading the xls file.

I have created the (.xls)Excel with external library function(libxlsxwriter) in c++ language.

What I Encountered is that the file created cannot be read back unless it is saved as with other name.



How to solve this error.?

Why is the value zero at the first time?

What I have tried:

BasicExcel e ;
bool value = e.load("sample.xls");

Here the value is always return 0 ,since the load operation is not happening.


but when I do "SaveAs" sample.xls manually value will be 1.
Posted
Updated 26-Nov-19 5:14am

1 solution

It is difficult to guess what your problem is there is no code to look at.

I would guess the file is being left open after it is written. Or, conversely, left open after it was read so you can't write to it. Those are just guesses though.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900