(My apologies if this is the second time you've seen this.  I originally
sent it last week but it looks like it never got through.)

For a while now, we've had our own customization of
org.apache.poi.hssf.model.Sheet that adds a ProtectRecord (and sets the
protection to true) because we want to create protected sheets within our
workbooks.  Yes, we know that there is no password protection.  We just want
the users that download the files to be reminded what they are supposed to
be changing and what they aren't.

Before we go to the trouble of submitting a patch, I thought I'd ask whether
there is a reason that Sheet.createSheet() should *not* add the
ProtectRecord *with protection false* as does Workbook.createWorkbook()?
Our proposed patch would be something along the lines of copying the code
from Workbook.createProtect() into Sheet and then calling it from
Sheet.createSheet().  Our code would then fish out that record and switch
the protection setting for the sheets on which we need the protection.

Thanks,
  Rick Berman
  Moai Technologies

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

Reply via email to