https://bz.apache.org/bugzilla/show_bug.cgi?id=43693
Dominik Stadler <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|NEW |RESOLVED --- Comment #8 from Dominik Stadler <[email protected]> --- It seems Excel has some strange checking on the values set in the PrintSetup, so if you do not set all of them to useful values, Excel may ignore the settings and use defaults, e.g. what did work for me was the following: setup.setLandscape(true); setup.setPaperSize(PrintSetup.A4_PAPERSIZE); setup.setScale((short)100); setup.setValidSettings(false); Also the setValidSettings() could be interferring here. Generally it should be "false" to not make Excel use default values! However I don't think we can re-implement the checking that Excel does internally as it is not part of the Spec and thus a complete mystery to us, so I think this is WONTFIX for us unless someone comes up with a better way to handle the print settings. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
