Bug 168237 - GDI EMF OOXML: 'Wall Chart' resizes after reopen DOCX saved in LO with chart pasted to Writer form Excel
Summary: GDI EMF OOXML: 'Wall Chart' resizes after reopen DOCX saved in LO with chart ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.1.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:emf, filter:ooxml
Depends on: 163158
Blocks: EMF-WMF DOCX-Images
  Show dependency treegraph
 
Reported: 2025-09-01 16:47 UTC by Piotr Osada
Modified: 2025-09-09 10:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Bug summary image (91.83 KB, image/png)
2025-09-01 16:49 UTC, Piotr Osada
Details
Bug behavior and EMF Parser logs (2.90 MB, application/pdf)
2025-09-01 17:09 UTC, Piotr Osada
Details
Example spreadsheet (28.75 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-09-01 17:28 UTC, Piotr Osada
Details
ODT works fine (53.19 KB, application/vnd.oasis.opendocument.text)
2025-09-09 08:37 UTC, Piotr Osada
Details
ODT works fine (exported PDF) (123.12 KB, application/pdf)
2025-09-09 08:37 UTC, Piotr Osada
Details
DOCX has a problem (340.39 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-09-09 08:38 UTC, Piotr Osada
Details
DOCX has a problem (exported PDF) (775.76 KB, application/pdf)
2025-09-09 08:39 UTC, Piotr Osada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Osada 2025-09-01 16:47:33 UTC
+++ This bug was initially created as a clone of Bug #163158 +++

Writer loses chart ploting area ('Chart Wall') dimensions when save document with graph pasted as GDI metafile from Excel

This is an interoperability issue. When copying from Excel any chart and pasting it as vector graphic using GDI-pasted vector image, this image will be transformed in size after save as DOCX.
When copying similarly from Calc the saved DOCX retains proper graphs.



Steps:
1) In MS Excel copy any chart
2) In LO Writer: Ctrl+Shift+V
3) Paste special → Graphics Device Interface metafile (GDI)
4) Save as DOCX
5) Reopen DOCX in Writer or Word


Result:
The ‘Chart Wall’ (plot region) shows a small part (aproximately 20% x 20%) of the original chart, stretched across the entire wall starting from the top-left corner. 


Expected:
A chart inserted in document as a vector graphic (using GDI interface) should retain the same proportions as it appears in spreadsheet applications. 


Version: 25.8.1.1 (X86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded

Microsoft® Word for Microsoft 365 MSO (Version 2507 Build 16.0.19029.20136) 64-bit
Comment 1 Piotr Osada 2025-09-01 16:49:38 UTC
Created attachment 202647 [details]
Bug summary image
Comment 2 Piotr Osada 2025-09-01 17:09:40 UTC
Created attachment 202648 [details]
Bug behavior and EMF Parser logs

EMFParser can be downloaded from here:
https://download.cnet.com/download/emf-parser/3000-2383_4-10558240.html
Comment 3 Piotr Osada 2025-09-01 17:28:53 UTC
Created attachment 202649 [details]
Example spreadsheet
Comment 4 Bartosz 2025-09-08 23:30:28 UTC
Thanks Piotr.
Please paste the spreadsheet after pasting the GDI-pasted vector image.

Example file is opening correctly.
Comment 5 Piotr Osada 2025-09-09 08:33:44 UTC
Hi Bartosz,
the issue is action between MS Excel and LO Writer. 

(Not inside spreadsheet, e.g. Calc to Calc copy-paste.)
Comment 6 Piotr Osada 2025-09-09 08:37:05 UTC
Created attachment 202759 [details]
ODT works fine
Comment 7 Piotr Osada 2025-09-09 08:37:56 UTC
Created attachment 202760 [details]
ODT works fine (exported PDF)
Comment 8 Piotr Osada 2025-09-09 08:38:40 UTC
Created attachment 202761 [details]
DOCX has a problem
Comment 9 Piotr Osada 2025-09-09 08:39:08 UTC
Created attachment 202762 [details]
DOCX has a problem (exported PDF)