Issue 69695 - An emf inserted into a wordprocessing document, saved as .doc,is not readable by Microsoft Word 2003 when opened
Summary: An emf inserted into a wordprocessing document, saved as .doc,is not readable...
Status: ACCEPTED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 3.x
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-20 10:58 UTC by fridrich.strba
Modified: 2013-02-07 22:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
A file demonstrating this behaviour (9.50 KB, application/msword)
2006-09-20 10:59 UTC, fridrich.strba
no flags Details
A picture as it is stored in the odt file (49.63 KB, application/octet-stream)
2006-09-22 09:54 UTC, fridrich.strba
no flags Details
an extended meta file that results from inserting the visio graphics into a MSWord document in MS word (84.45 KB, application/octet-stream)
2006-09-22 09:56 UTC, fridrich.strba
no flags Details
emf file extracted from a msword document that results from OOo converting a odf file with a picture inserted (87.52 KB, application/octet-stream)
2006-09-22 09:57 UTC, fridrich.strba
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description fridrich.strba 2006-09-20 10:58:26 UTC
The attached document is having a graphics inserted from MS Visio into a
OpenOffice.org Writer document. When this document is saved as MS word doc, the
graphics is still readable by OpenOffice.org/StarOffice, but it is not readable
by Micro$oft Word.
Comment 1 fridrich.strba 2006-09-20 10:59:03 UTC
Created attachment 39266 [details]
A file demonstrating this behaviour
Comment 2 fridrich.strba 2006-09-20 13:46:42 UTC
@sj: I had a look at the emf reading and writing code and it might be that we
have  got the header wrongly. I found this documentation
http://wvware.sourceforge.net/caolan/ora-wmf.html and wherever it speaks about a
value of size LONG in the extended metafile header, we use INT32, instead of a
64 bit number. Both for writing and for reading. So, an image that we create
ourselves is easily readable by ourselves, but it fails on win32.
I might be wrong and your documentation may be different, just let me know
whether this is the problem or not.
Comment 3 fridrich.strba 2006-09-20 15:34:26 UTC
Please, disregard my previous comment. I understood that LONG actually means
signed DWORD in the docs and SHORT means signed WORD :-(
Comment 4 sven.jacobi 2006-09-21 15:02:11 UTC
Yes, the emf graphic is not readable by Word, it means the attached Word
document is already defect. I need to know how to reproduce this problem, if I
am inserting a Visio Object into Writer and storing the document to Word,
everything is fine.

sj->wg: can you please try to reproduce this problem.
Comment 5 wolframgarten 2006-09-22 09:39:43 UTC
Sorry, nor can I reproduce this. When extracting the graphic from the file and
trying it to load it in another application it does not show up, it is broken.
Trying this with other, self build emf files is working.
Comment 6 fridrich.strba 2006-09-22 09:53:39 UTC
Maybe this one will help: I am attaching three files first.emf,
2000034700003BCC000029FC60F4097A.svm and second.emf
First.emf is obtained this way: A visio graphics is inserted into a MS Word
document and saved. Using the DBG_EXTRACTGRAPHICS define in
svx/source/msfilter/msdffimp.cxx extracted the emf file by opening the Word
document in OOo.
Second.emf is obtained this way: A visio graphics is inserted into
OpenOffice.org document which is saved as *.odt. Than this document is opened
and resaved as a word document. Using the same dbg option, I extracted the file
from the document.
2000034700003BCC000029FC60F4097A.svm is what one can find in the Pictures
directory of the ODT file.
Comment 7 fridrich.strba 2006-09-22 09:54:57 UTC
Created attachment 39303 [details]
A picture as it is stored in the odt file
Comment 8 fridrich.strba 2006-09-22 09:56:05 UTC
Created attachment 39304 [details]
an extended meta file that results from inserting the visio graphics into a MSWord document in MS word
Comment 9 fridrich.strba 2006-09-22 09:57:14 UTC
Created attachment 39305 [details]
emf file extracted from a msword document that results from OOo converting a odf file with a picture inserted
Comment 10 sven.jacobi 2006-09-22 12:37:50 UTC
Many thanks for the new attachments, even though I can't still reproduce this
issue by inserting an OLE object from Visio, the attachments are valuable,
because I noticed that we do have a problem when exporting the svm graphic to
emf, then only a part of the metafile is displayed in Word.

I will fix the problem we have when exporting the attached svm graphic to emf
(in the hope that this also solves everything else)
Comment 11 sven.jacobi 2006-10-12 16:44:54 UTC
changed target
Comment 12 Martin Hollmichel 2008-01-28 02:31:40 UTC
set target 3.x