Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tspayne87
Copy link
Contributor

Description

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

  • worksheet_merge_cells(name: &str)
  • worksheet_merge_cells_at(n: usize)

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
Copy link
Owner

tafia commented Jun 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants