Layouting difference comparing to MS word because of alignment type is 'Exactly' - Branched from 197017

Thank you for your support!

I want to add something that maybe is related and maybe not - if not, I can open a new post.

The display in the document editor and the docx is not the same in page by page. 

Not by a small change but in a lot of rows. I want to know if it's because of that merge problem between DocIO to Document editor.


I added here a zip file with the document and two pictures - Word Docx display and Document Editor display of the same document.

In addition I add the Import and Save functions for the server and client (same result):


Server Import:

[HttpPost("Import")]

public IActionResult Import(IFormCollection data)

{

    if (data.Files.Count == 0)

        return BadRequest("No file uploaded.");


    using var ms = new MemoryStream();

    data.Files[0].CopyTo(ms);

    ms.Position = 0;


    var sfDoc = new Syncfusion.DocIO.DLS.WordDocument(ms, Syncfusion.DocIO.FormatType.Docx);


    Syncfusion.EJ2.DocumentEditor.WordDocument document = Syncfusion.EJ2.DocumentEditor.WordDocument.Load(sfDoc);


    var sfdtJson = JsonConvert.SerializeObject(document);

    document.Dispose();


    return Content(sfdtJson, "application/json");

}


Server Save Word:

Syncfusion.DocIO.DLS.WordDocument wordDocument = new Syncfusion.DocIO.DLS.WordDocument(processedResult.FormattedStream, WFormatType.Docx);

MemoryStream stream = new MemoryStream();

wordDocument.Save(stream, Syncfusion.DocIO.FormatType.Docx);

wordDocument.Close();


Client Save Word:

//DocumentEditor editor

editor.save(`${this.file}.docx`, "Docx");


Attachment: Pages_problem_87c3f9c1.zip


5 Replies

AA Akshaya Arivoli Syncfusion Team July 16, 2025 08:58 AM UTC

Akshaya Arivoli Syncfusion Team

Hi Lion,


We can reproduce the reported issue "The display in the document editor and the docx is not the same in page by page" in the fourth page of the provided document, shared the video demonstrating the same. We will validate further on this and update you with more details on July 15, 2025.

If you are mentioning any other issues apart from this , revert with more details and the video demonstration. It will be helpful for us to provide you prompt solution.

Regards,

Akshaya

AD

Aravind Dharani Syncfusion Team

Hi Lion,

We have confirmed the reported issue `Layouting difference comparing to MS word because of alignment type is 'Exactly'' as a defect and logged a bug report. We will include this fix in our 2025 Volume 2 SP release which is expected on first week of August 2025.

 

You can track the status of the bug through the below feedback link:

Layout is not similar to MS Word in the document in JavaScript | 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.”

Regards,

Aravind D



AD Aravind Dharani Syncfusion Team August 6, 2025 12:47 PM UTC

Hi Lion,

We apologize for the inconvenience. We are unable to include the fix for the issue 'Layouting difference comparing to MS word because of alignment type is 'Exactly' in the latest release. The fix will be included in the upcoming weekly patch release, which is expected on August 12, 2025, without any further delays. We appreciate your patience until then.

Regards,

Aravind D




LT Lion Tales August 6, 2025 12:52 PM UTC

Hello,

Thank you for the update. 
I will wait for the fix and will check it.


Thanks.



AD Aravind Dharani Syncfusion Team August 13, 2025 04:09 PM UTC

Hi Lion Tales,

We sincerely apologize for the inconvenience caused. Due to automation failures, We couldn't include the fix in the latest release. We are currently working in it. So we will include it in the mid of the August 2025. We appreciate your patience until then.

Regards,

Aravind D



AD Aravind Dharani Syncfusion Team August 26, 2025 02:10 PM UTC

We are glad to announce that our patch release (v30.2.7) has been rolled out successfully. In this release, we have added the fix for the reported issue
'
'.

Please upgrade to the latest version packages to resolve this issue:

NPM link:


https://www.npmjs.com/package/@syncfusion/ej2-documenteditor

https://www.npmjs.com/package/@syncfusion/ej2-react-documenteditor

https://www.npmjs.com/package/@syncfusion/ej2-angular-documenteditor


NuGet links:‎


https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.Core/

https://www.nuget.org/packages/Syncfusion.Ej2.Wordeditor.ASPNet.MVC5/



Feedback link: 

https://www.syncfusion.com/feedback/68905/layout-is-not-similar-to-ms-word-in-the-document


Root Cause:

Due to splitting the text in layout the content is moved to the next page.


Regards,

Aravind D


Loader.
Up arrow icon