tafia / calamine

A pure Rust Excel/OpenDocument SpreadSheets file reader: rust on metal sheets
MIT License
1.6k stars 155 forks source link

Header in second row #426

Closed zszep closed 2 months ago

zszep commented 2 months ago

Is there any way to specify the header is in the second row e.g. in:

let iter_records = RangeDeserializerBuilder::with_headers(&["E-mail adresa", "Licenca"]).from_range(&range)?;

The first row contains a title.

tafia commented 2 months ago

Why not using a subrange?

https://docs.rs/calamine/latest/calamine/struct.Range.html#method.range

zszep commented 2 months ago

Great. Solves my problem. Didn't know about subranges.