Closed birubisht13 closed 4 years ago
Hi, I am trying to read a xls file in linux platform but getting following error : -
terminate called after throwing an instance of 'xlnt::exception' what(): xlnt::exception : failed to find zip header Aborted (core dumped)
code is taken from here [https://tfussell.gitbooks.io/xlnt/content/docs/introduction/Examples.html] -
xlnt::workbook wb; wb.load(daily_stmt_file); auto ws = wb.active_sheet(); cout << "Processing spread sheet" << std::endl; for (auto row : ws.rows(false)) { for (auto cell : row) { cout << cell.to_string() << std::endl; } } cout << "Processing complete" << std::endl;
what could be the reason for this exception ?
I'm sorry to say that xlnt only supports .xlsx (OOXML) files. To work with .xls files you'll need a different library such as ExcelFormat.
Hi, I am trying to read a xls file in linux platform but getting following error : -
terminate called after throwing an instance of 'xlnt::exception' what(): xlnt::exception : failed to find zip header Aborted (core dumped)
code is taken from here [https://tfussell.gitbooks.io/xlnt/content/docs/introduction/Examples.html] -
what could be the reason for this exception ?