hi nick,
i have been trying to get the cloneFromStyle(HSSFCellStyle source) method to
work. However, when i try and call the method to copy the style i get this
error:
java.lang.NoSuchMethodError:
org.apache.poi.hssf.usermodel.HSSFCellStyle.cloneStyleFrom(Lorg/apache/poi/hssf/usermodel/HSSFCellStyle;)V
This is the code i use:
HSSFCellStyle cellNewStyle = setStyle(book, cellOld.getCellStyle());
cellNew.setCellStyle(cellNewStyle);
private HSSFCellStyle setStyle(HSSFWorkbook wb, HSSFCellStyle
templateStyle){
HSSFCellStyle style = wb.createCellStyle();
style.cloneStyleFrom(templateStyle);
return style;
}
any suggestions to what i am doing wrong? Is it the case that i am not
calling the cloneStyleFrom() method correctly?
many thanks
mark
Nick Burch wrote:
>
> On Mon, 14 Jul 2008, mjw_85uk wrote:
>> i have got the file poi-3.2-alpha1-20080714.jar and have included it
>> into my Eclipse project. However, when i do this it causes a whole lot
>> of errors mainly because the import statements no longer work. Do you
>> have any suggestions to why it does this?
>
> I don't think anyone ever knows why eclipse does things...
>
> Try doing a clean of your project, then check the logs / warnings / little
> icons to see what it doesn't like
>
> I've checked the jar file on the nightly build site, and it's fine
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/HSSFCellStyle-help-tp18401553p18461595.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]