Saving to .ODT

Hello,
I'm trying to save a document (that I generate from scratch) to .ODT. The code is very simple:
WordDocument document;
IWSection section = document.AddSection();
IWTable table = section.AddTable();
table.ResetCells(1, 1);
When I save to .ODT and try to open it back in MS Word, Word says it cannot open it any longer because the file seems corrupted. Why?
Thanks!

6 Replies 1 reply marked as answer

HC Hemalatha Chiranjeevulu Syncfusion Team January 19, 2021 09:33 AM UTC

Hi Paolo,

Thank you for contacting Syncfusion support.

We have tried to reproduce the reported corruption problem using the given details, but the generated output Word document opens properly at our end. Please find the below screenshot of output Word document:

 
Screenshot of Output Word document 
 

For your reference, we have attached the sample application which we tried to reproduce the reported problem at our end. Please find the sample and output document from the below link:
https://www.syncfusion.com/downloads/support/forum/161643/ze/GenerateWordSample-260521758

If you still facing the same issue means, then kindly share us the modified sample of above and input Word document which used at your end, which will be helpful to reproduce the exact issue at our end. Thereby we will analyze further and provide you the appropriate solution at the earliest.

Please let us know if you have any other questions.

Regards,
Hemalatha C
 


Marked as answer

PA Paolo January 19, 2021 02:34 PM UTC

Thanks for your reply. I tried your sample and it works on my machine. However, in my project, I have exactly the same code and I get a "corrupted" file. I checked and I'm using the latest version 18.4.0.35.

I'm attaching the .ODT I get from my project. I try to open it in Microsoft Word but it says it cannot open it. I'm using Office 365.
What's wrong with the file?
Thanks!

Attachment: 6a17989af20f4710ba409dc84f9afa2c_41996b4e.zip


HC Hemalatha Chiranjeevulu Syncfusion Team January 20, 2021 10:36 AM UTC

Hi Paolo,

Thank you for sharing the details.

We can reproduce the reported corruption issue while running in Italian culture machine in our end, and we suspect it to be a defect. We will validate this issue and update you with more details on 22nd January 2021.

Please let us know if you have any other questions.

Regards,
Hemalatha C



HC Hemalatha Chiranjeevulu Syncfusion Team January 22, 2021 05:11 PM UTC

Hi Paolo,

Thank you for your patience.

We have confirmed that the reported issue with “Document gets corrupted when creating table in Word document in italian culture” is a defect. Since you are using our Weekly NuGet release (v18.4.0.35), we have planned to include this fix in our weekly NuGet release on 16th February 2021.

To track the status of the reported issue, please use the following feedback link.
https://www.syncfusion.com/feedback/21699/document-gets-corrupted-when-creating-the-table-in-word-document-in-italian

Note: If you require a patch for this issue in any other version, please kindly let us know the currently installed version, so that we can provide a patch in that version based on our SLA policy.

Please let us know if you have any other questions.

Regards,
Hemalatha C




PA Paolo January 22, 2021 05:53 PM UTC

Ok, thanks. However I cannot access the link you provided, it says "Access Denied, This private feedback is not associated with your account."


MJ Mohanaselvam Jothi Syncfusion Team January 25, 2021 07:17 AM UTC

Hi Paolo,

Sorry for the inconvenience.

Now, we have linked your Email id with the feedback link and you can able to see it.

As we mentioned earlier, we have planned to include the fix for reported issue in our weekly NuGet release on 16
th February 2021.

The status of the bug task can be tracked through below link:
https://www.syncfusion.com/feedback/21699/document-gets-corrupted-when-creating-the-table-in-word-document-in-italian 

Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 


Loader.
Up arrow icon