Hi,
Yes indeed. Even if you specify range in FindOptions, it searches outside that range too. in short the whole sheet is searched even with provided range. Do let me know here when that findString method works fine. Thanks!
Regards,
Rohan Naik
Hi,
Yes indeed. Even if you specify range in FindOptions, it searches outside that range too. in short the whole sheet is searched even with provided range. Do let me know here when that findString method works fine. Thanks!
Regards,
Rohan Naik
Hi,
Thanks for your posting.
I have logged your comment in our database against the issue id: CELLSJAVA-40178
We will let you know once we will have some update for you.
Hi,
Hi, I tested it with the latest jar. But it doesn't seem to work. Please find the below code and attached file.
public static void main(String[] args) {
String filepathA = "C://FileA.xls";
String test7 = "*Close of*";
try{
LoadOptions loadOptions1 = new LoadOptions(FileFormatType.EXCEL_97_TO_2003);
Workbook workbook1 = new Workbook(filepathA,loadOptions1);
FindOptions opt = new FindOptions();
opt.setRange(CellArea.createCellArea("A8", "F8"));
Cell c = workbook1.getWorksheets().get(0).getCells().findString(test7,null, opt);
}catch(Exception e){
e.printStackTrace();
}
}
Hi,
Hi,
Please use the following code for searching regex in range:
Java
The issues you have found earlier (filed as CELLSJAVA-40178) have been fixed in this update.