Skip to content

Commit

Permalink
MS Office opens XLS report with Protected View #90
Browse files Browse the repository at this point in the history
  • Loading branch information
soraksh committed Nov 8, 2018
1 parent 5f821bd commit eab51d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void cloneStyleRelations(HSSFCellStyle source, HSSFCellStyle targe
InternalWorkbook targetWorkbook = getWorkbookFromStyle(target);
if (targetWorkbook != sourceWorkbook) {
//Then we need to clone the format string, and update the format record for this
short fmt = sourceWorkbook.getFormat(source.getDataFormatString(), true);
short fmt = targetWorkbook.getFormat(source.getDataFormatString(), true);
target.setDataFormat(fmt);
}
}
Expand Down

0 comments on commit eab51d7

Please sign in to comment.