Page 1 of 1

Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Wed Nov 18, 2015 12:54 pm
by Johann
Hello everyone,

I am using the Oxygen component (SDK 17.1) and I try to do a copy/paste from MS Word 2007 to a document opened in Author view. When I paste, I get this message error
Could not retrieve the HTML content from the clipboard. The text content will be used instead. Reason:ro/sync/exml/editor/m/b/f
in a warning popup. When I click on "OK", as it is explained, only the text content is pasted in my Author view.
I tried to do the same operation with the Oxygen software(17.0) and with an old Oxygen SDK (16.1.1) and it works.

What is the problem with the Oxygen SDK 17.1 ?

Thanks for your help.

Johann

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Thu Nov 19, 2015 3:33 pm
by alex_jitianu
Hello Johann,

Thank you for reporting this issue. I've managed to reproduce it myself. Apparently some classes required to handle the XHTML that Word 2007 puts in the clipboard are missing from the 17.1 SDK. After we fix this issue we will release a new 17.1 SDK and we will send you a notification.

Best regards,
Alex

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Thu Nov 19, 2015 4:07 pm
by Johann
Hello Alex,

Thanks for your response. Does MS Word 2007 only have this issue ? Are MS Word 2010 or 2013 versions working correctly ?

Regards,

Johann

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Thu Nov 19, 2015 4:56 pm
by alex_jitianu
Hi Johann,

I couldn't test with neither MS Word 2010 nor 2013 because I don't have a license for neither of them. But I can tell you that the problem comes from the fact that inside the HTML there is a CSS block. Chances are MS Word 2010 nor 2013 do the same. Basically the cause of the fail is a missing dependency JAR. Can you wait for the next SDK build (should come in a couple of days) or do you want me to give you a temporary solution?

Best regards,
Alex

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Thu Nov 19, 2015 5:06 pm
by Johann
I can wait for the next SDK build. ;) I was just wondering if the correction was specific for MS Word 2007. It seems not to be.

Regards,

Johann

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Thu Dec 03, 2015 4:00 pm
by Johann
Hello Alex,

Have you included the correction in the build (ID: 2015111718) ? I don't see any description of this correction. (https://www.oxygenxml.com/build_history.html)

I tried to dowload the new 17.1.0 Oxygen component and I still have the bug.

Thanks.

Johann

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Fri Dec 04, 2015 2:28 pm
by alex_jitianu
Hello Johann,

We've just uploaded a new SDK version ( 17.1.0.1) that should fix this issue. Please give it a try.

Best regards,
Alex

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Fri Dec 04, 2015 6:30 pm
by Johann
Hello Alex,

I just tried the new SDK version (17.1.0.1) and unfortunately I get the same rendering when I paste (just the text, no table, no list etc..) from Word 2007 or Word 2016.

Do you have any idea ?

Thanks,

Johann

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Fri Dec 04, 2015 6:35 pm
by alex_jitianu
Hello Johann,

I'm not sure what's wrong... I'll double check and get back to you with the conclusions...

Best regards,
Alex

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Tue Dec 08, 2015 12:30 pm
by alex_jitianu
Hello Johann,

There was indeed a JAR missing from the SDK. I've regenerated the 17.1.0.1 SDK and tested it myself and I was able to successfully paste from Word. Please remove {user.home}/.m2/repository/com/oxygenxml before rebuilding the project (to make sure the latest artifacts are retrieved).

Best regards,
Alex

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Tue Dec 08, 2015 6:01 pm
by Johann
Hello Alex,

I've tested the new 17.1.0.1 SDK (I've removed my .m2 folder before) and unfortunately I still have the issue. (on Word 2007 and 2016)

Which version of Word have you tested ? Have you tested to paste "complex" objects like tables or lists ? Does the paste keep the original structure ?


Thanks.

Johann

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Wed Dec 09, 2015 10:11 am
by alex_jitianu
Hi Johann,

Really sorry to hear that! I've tested by copying lists from Word 2016. I don't see an exception (like I've previously did) and the list structure is being kept. The JAR that should solve this problem is oxygen-css-pretty-printer-obf-17.1.0.1.jar. Is this Jar brought by Maven and present in your build?

Best regards,
Alex

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Wed Dec 09, 2015 7:32 pm
by Johann
Hello Alex,

Indeed, the jar oxygen-css-pretty-printer-obf-17.1.0.1.jar was missing in my .m2 folder. I needed to call this dependency in my application. It works perfectly now ! :)

Thanks again for your help on this issue.

Johann

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Fri Dec 11, 2015 7:04 pm
by Johann
Hello Alex,

When have you planned to publy an official maintenance build for 17.1 including this correction ?

On my side, I have requirements at the beginning of January.

Thanks,

Johann

Re: Oxygen Component 17.1 - Copy-Paste not working from MS Word 2007

Posted: Mon Dec 14, 2015 10:08 am
by alex_jitianu
Hello Johann,

I'm glad to hear that it is working on your side too. 17.1.0.1 is an official SDK maintenance build although it was not officially announced yet. We intend to release another Oxygen build close to Christmas and we will probably officially announce them both then (Oxygen build + SDK).

Best regards,
Alex