@mh: Yes, you're right! I was having a picture within the template sheet. Having removed it cloning worked just fine. Just a pity that I can't use the customer's logo for his reports... Thank you!
Do you happen to have a solution to my other headache as well? ;-) (see parallel thread: removeSheetAt -> manipulated content) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 12:25 AM To: POI Users List Subject: Re: cloneSheet -> RuntimeException. Basic use case! it seems, that you have/had a picture in the sheet "someSheetName". I got the same exceptions, when i tried to clone sheets with pictures inside g mh Zitat von Kalle <[EMAIL PROTECTED]>: > Dear list, > > I hope some of you can give me some hints or workarounds to achieve a very > basic use case: > > Use case: I need to produce multiple sheets based upon a single template > sheet (providing some styling etc.). > > Problem: When I call workbook.cloneSheet("someSheetName") I get the > following Exception: > > java.lang.RuntimeException: The class > org.apache.poi.hssf.record.DrawingRecord needs to define a clone method > > > Any hints or workarounds? Any help would be appreciated! > > Regards, > > Kalle > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > Mailing List: http://jakarta.apache.org/site/mail2.html#poi > The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
