Apache OpenOffice (AOO) Bugzilla – Issue 53230
Embeded Spreadsheet Change Size After Export and Edit
Last modified: 2013-08-07 14:38:26 UTC
An embeded Excel spreadsheet in MS Word file will change its size, after the Word open is opened by OpenOffice.org (1.9.122 tested), saved into Word again, and opened in Word. Procedure to reproduce: 1. Create a Word document using MS Word. Insert an embeded Excel spreadsheet. Save. 2. Open .doc file created in (1) in OpenOffice.org. Save it into another .doc file without modifying anything. 3. Open .doc file created in (2) in MS Word. The OLE Excel spreadsheet should be in the correct size. However, double click on the spreadsheet, and then click outside the canvas without modifying anyway to return to Word, the OLE object size would change (normally enlarge). Tried to repeat the same with OLE a bitmap (MS Paint) object, and cannot reproduce. So maybe just Excel?
Created attachment 28677 [details] Example input file for (1)
Created attachment 28678 [details] Example output file for (2) (after exporting by OO.o1.9.122)
MRU->MAV: exporting the first attachment to MS Word format and opening in Word, the object will be enlarged by about 1 cm after activating and deactivating.
MAV->FLR: In discussion you have suspected that the problem is the size of the replacement image that is provided to the stored version of the embedded document. The replacement image itself is preserved as it is provided by loading ( when the object is not edited ), but the size seems to be generated in the file "svx\source\msfilter\escherex.cxx:3887" in the method "EscherGraphicProvider::GetBlibID()" if the replacement image is in wmf format. This implementation seems to be very old, so when I tried the same scenario with OOo1.1.4 I have also got the resizing of the replacement image after activation. Could you please take a look, seems to be your area.
Considering the effort, the priority, the risk and our resource planning I've to retarget this issue to OOo Later.
Reset assignee on issues not touched by assignee in more than 1000 days.