Hello,
   I am trying to clone a worksheet in excel template using the Apache POI API, 
3.0.1 with an Excel 2002 template on Windows XP and it throws the foll. 
Exception!
 
  Exception in thread ""main"" java.lang.RuntimeException: The class 
org.apache.poi.hssf.record.DrawingRecord needs to define a clone method
  at org.apache.poi.hssf.record.Record.clone(Record.java:153)

  I went thru some of the old posts and somebody had commented that Apache POI 
API cloning does not work if it had any special elements.So I went back to my 
excel template and found the foll. special elements:

  1. Comments in cells
  2. Drop down menu control
  3. Radiobutton controls

  I removed them and the HSSFWorkbook.cloneSheet(0) method works fine. 

  Is there any workaround to this problem? Is this a bug in the Apache POI 
3.0.1?
  

thanks,
Vishwa


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to