Problem cloning sheets.. and fix

Mar 25, 2010 at 5:42 PM
Edited Mar 25, 2010 at 5:43 PM


First congratulations and many thanks for this project that has saved my ass many times. Here's he issue, I was cloning the first sheet of a particular file I am using as a template for creating other files with many sheets based on that first one. But it was failing with the message that the class MulBlankRecord must implement the Clone() method. Other files work fine but this one I'm using has some akward formatting in some cells. I searched a bit and found the current java implementation with a solution:

File MulBlankRecord.cs at project HSSF/Record, include at the end:

public override object Clone(){
    // immutable - so OK to return this
    return this;

Now it works perfectly. Can this be included in the trunk or how can I upload a patch? It looks so simple it's not even a patch, hehe. Thanks