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

Post here questions and problems related to oXygen frameworks/document types.
Johann
Posts: 72

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

Wed Nov 18, 2015 12:54 pm

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
alex_jitianu
Posts: 652

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

Thu Nov 19, 2015 3:33 pm

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
Johann
Posts: 72

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

Thu Nov 19, 2015 4:07 pm

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
alex_jitianu
Posts: 652

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

Thu Nov 19, 2015 4:56 pm

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
Johann
Posts: 72

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

Thu Nov 19, 2015 5:06 pm

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
Johann
Posts: 72

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

Thu Dec 03, 2015 4:00 pm

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
alex_jitianu
Posts: 652

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

Fri Dec 04, 2015 2:28 pm

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
Johann
Posts: 72

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

Fri Dec 04, 2015 6:30 pm

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
alex_jitianu
Posts: 652

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

Fri Dec 04, 2015 6:35 pm

Hello Johann,

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

Best regards,
Alex
alex_jitianu
Posts: 652

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

Tue Dec 08, 2015 12:30 pm

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
Johann
Posts: 72

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

Tue Dec 08, 2015 6:01 pm

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
alex_jitianu
Posts: 652

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

Wed Dec 09, 2015 10:11 am

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
Johann
Posts: 72

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

Wed Dec 09, 2015 7:32 pm

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
Johann
Posts: 72

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

Fri Dec 11, 2015 7:04 pm

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
alex_jitianu
Posts: 652

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

Mon Dec 14, 2015 10:08 am

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests