On Tue, 1 Mar 2011, Filip Defoort wrote:
Digging through the sources, I found that this method does a call to
sheet.getPrintSetup(). It turns out that this call is doing something
bad. In fact, doing a simple test like so will trigger the problem:
1/ read xlsx file with print settings
2/ call s.getPrintSetup() on a sheet (without doing anything else)
3/ save the xlsx file
-> your print settings are going.
Any chance you could create a new entry in bugzilla, upload a simple file
with some print settings already in it, then write a quick unit test that
does:
* load the file
* check the print settings
* save and re-open
* checks the print settings (this bit should fail based on what you say)
We can then use that as the basis for a test and fix. FWIW, I've just
added a unit test that shows that:
* create new file
* add print settings
* save and re-open
* check print settings are as we set them
all works fine, so we really need a unit test for your case to spot what's
up.
Thanks
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]