I have some program That I have developed on Java with poi package, which is taking some content from one word file and inject it into new file.
The new file is generated from exist file template and the content injected into the table.
Most of the content is in Hebrew.
The problem is that all of the content that is generated is coming up with proofing warning (see image), although it’s correct spelled.
Copy to another file doesn’t solve it (but if I type manually new words the file correcting well), and it’s very annoying problem.
I want that the proofing check will be working well.
I have some googled it and didn’t find a solution.
Does someone has a clue?
This is the method which inject the content into the tables.
public boolean fillInTable() throws IOException {
System.out.println("fillInTable -current data = " + data);
XWPFTable table = document.getTables().get(0);
boolean moreResults = false;
ListIterator<MichrazOutputLine> lines = data.listIterator();
while(lines.hasNext()) {
XWPFTableRow row4 = table.getRow(table.getRows().size()-1);
XWPFTableRow tableRow = table.createRow();
MichrazOutputLine currLine = lines.next();
tableRow.getCell(0).setText((rowIndex++) + ".");
for(int i = 0; i < parameters.size(); i++) {
SearchParameter<?> curr = parameters.get(i);
if(curr.isOutput()) {
String value = "";
switch(curr.getAppCriteria()){
case CUSTOMER_NAME:
value = currLine.getCustomerName();
break;
case DATE:
value = currLine.getYear();
break;
case EMPLOYEES_NUMBER:
value = currLine.getEmployeeNum();
break;
case PROJECT_DESCRIPTION:
value = currLine.getProjectDescription();
break;
case WORK_HOURS:
value = currLine.getWorkHoursSum();
break;
case BUDGET:
value = currLine.getBudget();
break;
case RECOMMENDER:
value = currLine.getRecommender();
break;
case FILE_PATH:
value = currLine.getFilePath();
break;
}
tableRow.getCell(curr.getOutputCellIndex()).setText(value);
}
}
lines.remove();
if(table.getRows().size()-1> maxResult-1) {
dataFull = true;
System.out.println("fillInTable -data finished = " + data);
return true;
}
}
System.out.println("fillInTable -data finished = " + data);
return moreResults;//true - continue the process
}