Closed Tim-Kracht closed 4 months ago
Hi @Tim-Kracht thanks for the bug report! Indeed, I can reproduce, but this appears to be an issue with calamine, as I also have the problem with the following rust code:
use calamine::{open_workbook, Reader, Xlsx};
fn main() {
let mut workbook: Xlsx<_> = open_workbook("chart.xlsx").expect("could not open workbook");
let range = workbook
.worksheet_range("Chart1")
.expect("could not open worksheet range");
}
thread 'main' panicked at examples/bug_235.rs:7:10:
could not open worksheet range: XmlEof("sheetData")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Could you please open an issue in the calamine repo so we can track progress here ? Thanks!
Should be fixed now.
Solved upstream (see https://github.com/tafia/calamine/pull/450). Thanks @tafia
When loading a chart worksheet,
load_sheet_by_name
raises:chart.xlsx