nissl-lab / npoi

a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.
Apache License 2.0
5.67k stars 1.42k forks source link

Add API for SearchText for xlsx,xls #1323

Closed softboy99 closed 4 months ago

softboy99 commented 4 months ago

NPOI Version Used

2.7.0

File Type

Use Case

Description

Add API for SearchText for xlsx,xls

tonyqus commented 4 months ago

Please clarify the input and output of this API. And PR contribution are welcomed.

softboy99 commented 4 months ago

Input is the string, output is the ICell Range Object

tonyqus commented 4 months ago

Iterating the rows and cells with NPOI is very easy. I don't think it worths creating a SearchText method and returns the cells since the performance may not be so good if there are huge numbers of data.

softboy99 commented 4 months ago

Hi @tonyqus , you can try, the performance is very slow