Skip to content

Bug: error reading vba project #581

@sftse

Description

@sftse

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

vba_fail.xls

Environment

- calamine version: master

Checklist

  • I have added a complete sample program that compiles in Rust.
  • I have added a test file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions