WordDocument Entities removed when opening a .dot template and saving as .docx

Hi,

I'm opening a word document template (.dot) with EssentialStudio, manipulating it, and then saving as a (.docx).

WShape entities are being removed and don't appear in the saved .docx.

(.dot) -> (.dot) WShapes are not deleted.
(.docx) -> (.docx) WShapes are not deleted.
(.dot) -> (.docx) WShapes are deleted.

This looks like a security feature when using Word Templates.

Is there any way around it? so that I can load a (.dot) template and save it as (.docx) while still having the WShape entities intact?

Thanks,
Jonathan

2 Replies

MJ Mohanaselvam Jothi Syncfusion Team January 9, 2018 06:43 AM UTC

Hi Jonathan,

Thank you for you update.

Currently DocIO doesn’t have support for shape preservation in DOT to DOCX conversion. We have already logged this as a feature request in our database. We will implement this feature in any of our upcoming releases. At present, we cannot provide any concrete timeline for this feature implementation. We will let you know once this feature is implemented.

As a work around, we suggest using any one of the followings to meet your requirement:
1. Kindly convert the shapes as images in the input DOT document using Microsoft Word and then convert into DOCX format.
2. Otherwise, kindly resave the DOT format as DOTX format using Microsoft Word, then perform DOTX to DOCX conversion to preserve shapes as it is. Since we support shapes in DOTX and DOCX file formats.

Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 



JB Jonathan Bailey January 12, 2018 11:05 AM UTC

Appreciate the quick response. This works for us, thanks.

Regards,
Jonathan

Loader.
Up arrow icon