Result compare 2 files word is wrong

Input and output files:
input_231215.7z (449.9 KB)

GroupDocs.Comparison .NET version: 25.2.0

Please retest my input files

Thank you!

@trucnv

Could you please provide more details about the specific issues you are encountering when comparing the two Word files? What exactly is wrong with the results?

The results compare is missing and wrong

@trucnv
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): COMPARISONNET-4404

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

hi @trucnv , could you please share a code sample, especially showing which CompareOptions you’re using to generate the output.docm file?

using (
    Comparer comparer = new Comparer(source))
{
    comparer.Add(target);

    // Options for Group Docs API
    CompareOptions compareOptions = new CompareOptions()
    {
        //MarkNestedContent = true,
        GenerateSummaryPage = false,
        MarkChangedContent = true,
        DetectStyleChanges = true,
        CompareBookmarks = false,
        ChangedItemStyle = new StyleSettings()
        {
            HighlightColor = System.Drawing.Color.Yellow,
            ShapeColor = System.Drawing.Color.LightYellow,
        },
        InsertedItemStyle = new StyleSettings()
        {
            HighlightColor = System.Drawing.Color.Aqua,
            ShapeColor  = System.Drawing.Color.Blue,
        },
        DeletedItemStyle = new StyleSettings()
        {
            HighlightColor = System.Drawing.Color.Red,
            ShapeColor= System.Drawing.Color.LightCoral,
        },

        DetalisationLevel = DetalisationLevel.High
        //ShowDeletedContent = false,
        //ShowInsertedContent = false,
    };

    // Start compare with options
    comparer.Compare(outPut, compareOptions);

    stopwatch.Stop();
    TimeSpan elapsedTime = stopwatch.Elapsed;
    Console.WriteLine("Time process API: " + elapsedTime.ToString());

    ProcessBar.UpdateProcessBar(60);    // Percent for process bar

    // Get changes of word
    ChangeInfo[] changes = comparer.GetChanges();

    int[] pageNumbers = Functions.GroupChangesByPage(changes).Keys.ToArray();

    Stopwatch stopwatch1 = new Stopwatch();
    stopwatch1.Start();

    CreatePageImage(outPut, pageNumbers);

    stopwatch1.Stop();
    TimeSpan elapsedTime1 = stopwatch1.Elapsed;
    Console.WriteLine("Time process create images: " + elapsedTime1.ToString());

    return changes;
}```
1 Like

Please fix this issue soon help me @alexndr

@trucnv99 Thank you for providing the code snippet. We’re currently investigating the issue and appreciate your patience. We’ll get back to you as soon as we have an update.

1 Like

hi @trucnv ,
Thank you for reporting the issue.
The problem has been resolved in GroupDocs.Comparison for .NET version 25.6.

Please update to the latest version and let us know if you encounter any further issues.