tafia / calamine

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

Support to get merged region #405

Closed gy0801151351 closed 3 months ago

gy0801151351 commented 4 months ago

For the Xlsx files, we have a requirement. We need to determine the region of a merged cell. And based on the row range or column range of this range, find other rows or other cells listed in this range. Therefore, we create this PR to get the region of the merged cells.

For example: The range of the merged cells is A1 to A2, the position of cell 2 is B1, the position of cell 3 is B2, and the position of cell 3 is B3. We need to read the data from B1 and B2 according to the range of this merged cell, because B1 and B2 are within the row range of the merged cell. Similarly, if the merged cells range is from A1 to A3, we need to read the data from B1, B2, and B3.

tafia commented 3 months ago

Thanks!