opening word crashes with WordDocument

Hello 

I have a problem opening my word template,

The line Template = new WordDocument(stream, type.Value) throws an exception

Attached you will find my code and the word document.

Version used : 28.1.37.

it worked very well with version 27.X.X

Thank you very much


Attachment: code_error_f533dfe7.zip

5 Replies

AA Aitbouhou Adam February 3, 2025 09:27 AM UTC

could you take these attachments into account and delete the first word


Attachment: TEMPLATE_PDP_STS_13ce335.zip


SR Sindhu Ramesh Syncfusion Team February 3, 2025 04:27 PM UTC

Hi Aitbouhou,
Currently, we are validating the reported issue and will share further details with you tomorrow.

Regards,
Sindhu Ramesh.



SR Sindhu Ramesh Syncfusion Team February 4, 2025 04:03 PM UTC

Aitbouhou,
We have reproduced the reported problem “ArgumentException thrown while opening DOCX document” in our end. We will validate this issue and update you with more details within two days.



SR Sindhu Ramesh Syncfusion Team February 6, 2025 04:38 PM UTC

Aitbouhou,
We have confirmed that the reported issue with "ArgumentOutOfRangeException thrown while opening a DOCX document contain table” is a defect and we have logged a defect report. We will include the fix for this defect in our weekly NuGet release, which is estimated to be available on second week of February 2025.

The status of this bug can be tracked through the below link:
ArgumentOutOfRangeException thrown while opening a DOCX document contain table in ASP.NET Core | Feedback Portal

Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.



SR Sindhu Ramesh Syncfusion Team February 11, 2025 11:22 AM UTC

Aitbouhou,
As promised earlier, we have included the fix for the reported issue with "ArgumentOutOfRangeException thrown while opening a DOCX document contain table " in our latest weekly NuGet release (v28.2.5).

Root cause of the issue:
An "ArgumentOutOfRangeException" occurs because the grid column start index exceeds the available range of the list.

Please use the below link to download our latest weekly NuGet:
Syncfusion.DocIO.Net.Core

The status of this bug can be tracked through the below link:
ArgumentOutOfRangeException thrown while opening a DOCX document contain table in ASP.NET Core | Feedback Portal


Loader.
Up arrow icon