Syncfusion.DocIO fails to open .docx file created with Syncfusion.DocIO

Hi!

Note 1: Creating a new incident in the support section does not work - when hitting the "Create" button a lot of HTTP calls are made but no issue shows up in the incidenct list... Therefore I'm forced to use this board.
Note 2: The "File Formats" product does not exist in the "platform" list... Therefore I was using "General Discussion".

Platform: .NET Core 2.0
Nuget package: Syncfusion.DocIO.NETStandard
Version: 16.2.0.50

The attached file wordout_large.docx was created using WordDocument.Save using the FormatType.Docx. When later trying to open the file with WordDocument.Open a ZipException is thrown: Syncfusion.Compression.Zip.ZipException: Zip exception.Can't locate end of central directory record...

It looks like somehow the overall size of the word file might matter. Using the exact same base word document but inserting low res versions of the same images results in wordout_small.docx which in contrast can be opened again.

Note that both versions can be opened by Word 365 - however like all Syncfusion generated docx files with a file corruption warning. After re-saving the file wordout_large.docx with MS Word, WordDocument.Open succeeds. So it's just an issue with the file directly generated by WordDocument.Save.

Please provide us a quick fix for this issue.

Kind Regards

Attachment: DocIO_4c206531.7z

3 Replies

DB Dilli Babu Nandha Gopal Syncfusion Team September 14, 2018 01:51 PM UTC

Hi Sarah, 

Thank you for contacting Syncfusion support. 

Regarding issues in incident creation and other concerns: 
Query  
Response  
Creating a new incident in the support section does not work - when hitting the "Create" button a lot of HTTP calls are made but no issue shows up in the incident list... Therefore I'm forced to use this board.  
  
  
We can’t reproduce from our side. Create new incident working fine. Can you share the console details and screen short. This will helpful to resolve your problem ASAP.  
  
Steps:

1) Right click the mouse click inspect element and click console and share the error details if any. 
 
2) Press f12 and click console  tab and share the console details if any.  
 
  
The "File Formats" product does not exist in the "platform" list... Therefore I was using "General Discussion".  
  
We will consider your request and add file format in platform list.  
  
  

Regarding ZipException while opening a Word document: 
We can reproduce the reported issue from our side. On further analyzing, we found that the exception is caused to improper serialization of Word document. We tried to reproduce this issue from our side but, the document was created and opened properly. We request you to share us the complete code example which was used to create/save a Word document along with the input Word document if any. This information will be helpful for us to provide you a prompt solution at the earliest. 

Regards, 
Dilli babu. 



SM Sarah Maislinger October 3, 2018 07:20 AM UTC

Hi Dilli Babu!

While creating the demo application for this support case I identified an incorrect MemoryStream handling in our code as the reason for this issue.

This issue therefore can be closed. Thank you for taking your time for investigation!

Kind Regards
David


DB Dilli Babu Nandha Gopal Syncfusion Team October 3, 2018 08:49 AM UTC

Hi David, 

We are glad to know that the reported issue has been resolved. 

Regards, 
Dilli babu. 


Loader.
Up arrow icon