I was doing this:
public DataCellInfo(String heading, Cell dataCell, CellStyle
defaultStyleDate,int originalOrder) {
header = heading;
ordinal = originalOrder;
column = dataCell.getColumnIndex();
datatype = dataCell.getCellType();
dataStyle =
Off to a "Lab party" just now, but I hope to get you some chunks of my
app (as broken).
On 12/20/18 4:53 PM, Greg Woolsey wrote:
I'm interested to see how you are creating the new sheet, wondering if
something lost a reference to the StylesTable somehow. Since I have code
that also
I'm interested to see how you are creating the new sheet, wondering if
something lost a reference to the StylesTable somehow. Since I have code
that also manipulates styles and adds/removes cells, I'm interested to see
if a bug was introduced or documentation needs improving, or perhaps some
I have circumvented the situation by using copyStyleFrom(). I posted
because a) I'm setting styles on cell in a new sheet in the origin
workbook - which to me contradicts the helpful hint and b) I had been
doing exactly that in the recent pass.
If you still want my code which generates the
Can you provide a test case, sample code, or full stacktrace? How is the
new sheet created? It looks to me from the code that the message means
exactly what it says - the style you are trying to set and the cell you are
trying to set it on come from different Workbook objects. Both the style
and
I'm using 4.0.1 as of this morning hoping this would help. I have
recently begun to get:
Exception in thread "main" java.lang.IllegalArgumentException: This
Style does not belong to the supplied Workbook Styles Source. Are
you trying to assign a style from one workbook to the cell of