How can I use WritableFont in ColdFusion ?
variables.labelObj=loader.create("jxl.write.Label");
variables.numberObj=loader.create("jxl.write.Number");
variables.formulaObj = loader.create("jxl.write.Formula");
variables.cellColor = loader.create("jxl.format.Colour");
variables.border = loader.create("jxl.format.Border");
variables.borderLineStyle = loader.create("jxl.format.BorderLineStyle");
variables.cellFormat = loader.create("jxl.write.WritableCellFormat");
variables.WritableFont = loader.create("jxl.write.WritableFont");
variables.CellXFRecord = loader.create("jxl.write.biff.CellXFRecord");
I'm using WritableCellFormat correctly.
test = variables.cellFormat.init();
test.setBorder(border.ALL,borderLineStyle.THIN,cellColor.BLACK);
But I'm not using WritableFont. Please give me simple code example how can I using WritableFont in coldfusion ?
I'm writing this code
newFont = variables.WritableFont.createFont("Arial");
test = variables.cellFormat.init(newFont);
but given error:
Unable to find a constructor for class jxl.write.WritableCellFormat that accepts parameters of type ( jxl.write.WritableFont$FontName )
Changed my code after @leigh advice and solve my issue
newFont = variables.WritableFont.init(WritableFont.ARIAL,16);
test = variables.cellFormat.init(newFont);