Bug 64491 - : [FILEOPEN] [FILESAVE] After Saving DOCX with Smart-Art and opening in Word - document is blank
Summary: : [FILEOPEN] [FILESAVE] After Saving DOCX with Smart-Art and opening in Word ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 4.0.2.2 release
Hardware: All All
: medium critical
Assignee: Not Assigned
QA Contact: Jorendc
URL:
Whiteboard: BSA target:4.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-12 13:55 UTC by Adam CloudOn
Modified: 2013-10-24 13:33 UTC (History)
6 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Original DOCX With Smart-Art (Created in Word) (24.49 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-05-12 13:55 UTC, Adam CloudOn
Details
DOCX after saved by LibreOffice (blank document) (3.96 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-05-12 13:57 UTC, Adam CloudOn
Details
screen shot of the exported smart-art in ms word 2007 (92.54 KB, image/jpeg)
2013-10-24 12:07 UTC, Thomas van der Meulen
Details
export Master (19.43 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-10-24 12:30 UTC, Thomas van der Meulen
Details

Description Adam CloudOn 2013-05-12 13:55:39 UTC
Created attachment 79195 [details]
Original DOCX With Smart-Art (Created in Word)

Problem description: 
After importing DOCX with Smart-Art into LO (Smart-Art doesn't look so good in LO) - after saving as NEW.DOCX and opening in Word - document is blank.

Steps to reproduce:
1. Load attached DOCX in LO (or create DOCX in Word with Smart-Art)
2. Save as NEW.DOCX
3. Load NEW.DOCX in Word
4. Word shows a blank page

Current behavior:
Word opens NEW.DOCX as a blank page

Expected behavior:
Word should open NEW.DOCX with the same Smart-Art as in the original DOCX.
Operating System: Windows 8
Version: 4.0.2.2 release
Comment 1 Adam CloudOn 2013-05-12 13:57:34 UTC
Created attachment 79196 [details]
DOCX after saved by LibreOffice (blank document)
Comment 2 Jorendc 2013-05-13 09:40:35 UTC
I can reproduce this behavior using Linux Mint 14 x64 with LibreOffice 4.0.3.3 and Version: 4.1.0.0.alpha1+ Build ID: 5441e509f87c96ca36913bd443152adbb8ad2c9

After reopening using Word 2010 the Smart-Art is gone.

Terminal output while exporting:
warn:legacy.tools:4036:1:filter/source/msfilter/eschesdo.cxx:832: ImplEscherExSdr::~ImplEscherExSdr: unwritten SolverContainer
warn:legacy.tools:4036:1:svx/source/unodraw/unopage.cxx:86: SvxDrawPage must be disposed!

I can't imagine this isn't reported before, but I'm going to mark it as NEW right now. If I find some time I'll try to bundle/link all related/duplicates to each other.

Priority for now:
* Critical: loss of data/information
* Medium: not MANY users (only those who use smart-art) (but maybe only this smart-art?)

Kind regards,
Joren
Comment 3 Julien Nabet 2013-05-18 14:48:54 UTC
Michael: Writer/filter problem, one for you?
Comment 4 Jorendc 2013-09-13 14:57:56 UTC
Seems like this commit should fix it? http://cgit.freedesktop.org/libreoffice/core/commit/?id=114eef57b5f5dd2936d528588bfd80a970845bb5

Will try to test it later today.

Kind regards,
Joren
Comment 5 Andrés Gómez García 2013-09-13 15:08:46 UTC
(In reply to comment #4)
> Seems like this commit should fix it?
> http://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=114eef57b5f5dd2936d528588bfd80a970845bb5
> 
> Will try to test it later today.
> 
> Kind regards,
> Joren
...

No, it didn't.

From the commit message:

"With this change, the files saved to docx that contain SmartArt will
be properly opened by MS Word without data loss.
LibreOffice won't be able to properly open saved files though, as
it requires the theme file to be present, and it's not being
exported yet. This is planned to be fixed in an upcoming patch."

We are still implementing the missing part for the theme file.
Comment 6 Jorendc 2013-09-13 15:21:21 UTC
(In reply to comment #5)
> We are still implementing the missing part for the theme file.

Dangit, you are right. My bad, didn't read the whole summary till the end :).
Thanks for your time working on this one!
Comment 7 Commit Notification 2013-09-20 09:36:30 UTC
Miguel Gomez committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=b4380022a664b86bcd29aa5a8ffe27f83afe763f

fdo#64491: Export theme file when saving



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 8 Commit Notification 2013-09-20 09:36:48 UTC
Miguel Gomez committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=b5a888d3681cc375657f84239eca391bbb270fd5

fdo#64491: Move SmartArt test from import to export



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 9 Andrés Gómez García 2013-09-20 09:42:18 UTC
(In reply to comment #8)
> Miguel Gomez committed a patch related to this issue.
> It has been pushed to "master":
...

This bug should be fixed now.

jorendc@libreoffice.org, could you test and mark as fixed if so?
Comment 10 Thomas van der Meulen 2013-10-24 12:05:40 UTC
Hello, 

I have tested it bug with Version: 4.2.0.0.alpha0+
Build ID: bfaea05b711ff3e204429ce9bd26c5fe63b0b687
TinderBox: Win-x86@42, Branch:master, Time: 2013-10-24_00:06:20

and it looks like Writer export the smart-art but wen I open the file with MS word 2007 it says that it couldn't load the file because there is something wrong with the content. (the words are translated ). Then it says that it had unreadable data  and if I wanted to repair that. Then it says that is couldn't load the file and that you should ook at MS website for a "conversion program". If you click no it will open a document with  some smart art (see screenshot) but not correct. 


I hope this will help you out a bit.
Comment 11 Thomas van der Meulen 2013-10-24 12:06:07 UTC
*** Bug 70060 has been marked as a duplicate of this bug. ***
Comment 12 Thomas van der Meulen 2013-10-24 12:07:06 UTC
Created attachment 88078 [details]
screen shot of the exported smart-art in ms word 2007
Comment 13 Andrés Gómez García 2013-10-24 12:16:14 UTC
(In reply to comment #10)
> Hello, 
> 
> I have tested it bug with Version: 4.2.0.0.alpha0+
> Build ID: bfaea05b711ff3e204429ce9bd26c5fe63b0b687
> TinderBox: Win-x86@42, Branch:master, Time: 2013-10-24_00:06:20
> 
> and it looks like Writer export the smart-art but wen I open the file with

Could you upload the saved .docx file from Writer?
Comment 14 Andrés Gómez García 2013-10-24 12:22:20 UTC
(In reply to comment #10)
> Hello, 
> 
> I have tested it bug with Version: 4.2.0.0.alpha0+
> Build ID: bfaea05b711ff3e204429ce9bd26c5fe63b0b687
> TinderBox: Win-x86@42, Branch:master, Time: 2013-10-24_00:06:20

... also, when testing, please check that you have the following option marked:

"Options -> Load/Save -> MS Office -> SmartArt to LibreOffice shapes or reverse"
Comment 15 Andrés Gómez García 2013-10-24 12:25:40 UTC
(In reply to comment #14)
> (In reply to comment #10)
> > Hello, 
> > 
> > I have tested it bug with Version: 4.2.0.0.alpha0+
> > Build ID: bfaea05b711ff3e204429ce9bd26c5fe63b0b687
> > TinderBox: Win-x86@42, Branch:master, Time: 2013-10-24_00:06:20
> 
> ... also, when testing, please check that you have the following option
> marked:

I meant, "unmarked" O:)
Comment 16 Thomas van der Meulen 2013-10-24 12:27:53 UTC
Tested the file with Wordd 2010 and there is have no problem with opening the file so that wierd.....
Comment 17 Thomas van der Meulen 2013-10-24 12:30:55 UTC
Created attachment 88080 [details]
export Master
Comment 18 Andrés Gómez García 2013-10-24 12:41:03 UTC
(In reply to comment #16)
> Tested the file with Wordd 2010 and there is have no problem with opening
> the file so that wierd.....

It seems so ...

Is the original file opened without problems in Word 2007 ?

Thanks a lot for your effort, BTW :)
Comment 19 Thomas van der Meulen 2013-10-24 13:33:51 UTC
Little summery: 
the Original file opens with out a problem in word 2007 (windows 7) and 2010 (windows 8). 
The file opens a bit squeezed down in LibreOffice master. (windows 7)
the exported file from LibreOffice opens correct in Word 2010 (windows 8) but it doesn't open correct in word 2007 (windows 7)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.