You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by frank_becks <fr...@intertek.com> on 2015/06/11 11:29:47 UTC

Difference in formatting Office 2010 and 2013

Hi, we use POI for generating Excel data reports. When opening the
spreadsheat in Excel 2010 the formatting looks fine. Recently we start using
Office 2013 an noticed some rows show a difference in formatting. See
screenshot of the same file in both Excel versions:
<http://apache-poi.1045710.n5.nabble.com/file/n5719069/2015-06-11_11_20_34-Microsoft_Excel_-_WO307771_20150526145920_%285%29_%5BRead-Only%5D_%5BCompatibility_Mode%5D.png> 

In all cases the top left part of the gray background and borders is
missing, following with missing gray background and borders right part after
the top, see blue dashed borders.


Is this a known bug? What could I try to solve this and have the formatting
consistent in both Excel versions? 


Many thanks,

Frank



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Difference-in-formatting-Office-2010-and-2013-tp5719069.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Difference in formatting Office 2010 and 2013

Posted by frank_becks <fr...@intertek.com>.
Hi Mark,

I still have the issue. All applied styles are the same. Our current
workarround is to first save the file in Excel 2010 then the formattings
stays ok when opened in 2013.

The problem is we won't have any machines running 2010 in the near future.
Did any solution came up in the mean time?

Is it possible I send you my code to rule out any mistakes from my part?

Kind regards,

Frank



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Difference-in-formatting-Office-2010-and-2013-tp5719069p5722227.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Difference in formatting Office 2010 and 2013

Posted by Mark Beardsley <ma...@tiscali.co.uk>.
My only thought is are you referring to styles by name when creating the
file? If so, it is possible that the styles differ between the versions of
Excel. It may be the case that in 2010, someone has modified a style and
that these changes have not percolated through to the 2013 version yet.

Aside from that, I do not have any idea yet. Will think about it though. It
is even more confusing as I am guessing that the same styling is applied to
all of the cells with gray backgrounds on the worksheets you posted.



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Difference-in-formatting-Office-2010-and-2013-tp5719069p5719071.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org