calamine
calamine copied to clipboard
Bug: error reading vba project
Current behavior
InvalidRecordId { expected: 71, found: 26 }
This is from the Enron case, older than 2003. I have a lot of failing test files from that case that I never got around to making issues for.
Expected behavior
Presumably should not error, but have not investigated.
Sample code to reproduce
use calamine::{open_workbook, Error, Reader, Xls};
fn main() -> Result<(), Error> {
let test_file = "somefile.xlsx";
let mut wb: Xls<_> = open_workbook(test_file)?;
wb.vba_project().unwrap();
}
Test file
Environment
- calamine version: master
Checklist
- [x] I have added a complete sample program that compiles in Rust.
- [x] I have added a test file.