On Mar 2, 2011, at 3:17 AM, Nick Burch <[email protected]> wrote:

> On Tue, 1 Mar 2011, Filip Defoort wrote:
>>   public void setRepeatingRowsAndColumns(int sheetIndex,
>>                                          int startColumn, int endColumn,
>>                                          int startRow, int endRow) {
>>       ....
>> 
>>       XSSFPrintSetup printSetup = sheet.getPrintSetup();
>>       printSetup.setValidSettings(false);
>>   }
>> 
>> This sets the "valid settings" to false; when this happens, the
>> resulting xlsx gets:
>> 
>> <pageSetup scale="48" orientation="landscape"
>> horizontalDpi="4294967292" verticalDpi="4294967292"
>> usePrinterDefaults="false"/>
> 
> Hmm, I wonder if that code was assuming that no print settings existed before?
> 
> Any chance you could create a simple file with print settings and add it to a 
> new bugzilla entry? We can then change it so that the valid settings isn't 
> set to false if the settings were already there, and add a unit test for it

Yup, will do.

Filip

> 
> Thanks
> Nick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to