tafia / calamine

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

Adding in ability to read merge cells from xls and xlsx files. #307

Open tspayne87 opened 1 year ago

tspayne87 commented 1 year ago

Description

Adding two new methods for both xls and xlsx objects for reading merge cells

This was brought about from #305, where I am using the library and need to get merge cells and I did not see any way todo it in the current codebase. I am a little new to rust so if I am doing something wrong or if there is a better way of doing something please inform me.

Example

let mut excel: Xlsx<_> = open_workbook(&path).unwrap();
let merge_cells = excel
    .worksheet_merge_cells_at(0)
    .unwrap()
    .unwrap();
tafia commented 1 year ago

There seem to be some issues with the PR. Could you have a look?