Attempt to modify a referenced format while setting background color

normansnail

New Member
\[code\]WritableFont headerFont = new WritableFont(WritableFont.ARIAL, 9, WritableFont.BOLD, false)WritableCellFormat headerFormat = new WritableCellFormat(headerFont)headerFormat.setBackground(Colour.GREY_25_PERCENT)headerFormat.setWrap(true)\[/code\]I am getting an Exception: jxl.write.biff.JxlWriteException: Attempt to modify a referenced format Why?
 
Top