Free Support Forum - groupdocs.com

EndNote Comparison is not getting in .Net Version


#1

Hi Team,

1.EndNote Comparison is not getting in .Net Version
2.Deleted Text is comparison is not perfecte.

Can you suggest the best way to get Crestal clear Comparison…!!!

Sample code

public static void CompareDcumentsFromFileToOutputFileWithSettings()
    {
        // define and set comparison settings and properties.
        ComparisonSettings objComparisonSettings = new ComparisonSettings();
        objComparisonSettings.CalculateComponentCoordinates = true;
        objComparisonSettings.DeletedItemsStyle.StrikeThrough = true;
        objComparisonSettings.DeletedItemsStyle.FontColor = System.Drawing.Color.Red;

        objComparisonSettings.DetailLevel = DetailLevel.Hight;
        objComparisonSettings.DiagramMasterSetting.UseSourceMaster = true;
        objComparisonSettings.GenerateSummaryPage = true;
        objComparisonSettings.InsertedItemsStyle.FontColor = System.Drawing.Color.Green;
        objComparisonSettings.MarkDeletedInsertedContentDeep = true;
        objComparisonSettings.ShowDeletedContent = true;
        objComparisonSettings.StyleChangeDetection = true;
        objComparisonSettings.UseFramesForDelInsElements = true;

        objComparisonSettings.StyleChangedItemsStyle.HighlightColor = System.Drawing.Color.LightGray;
        objComparisonSettings.StyleChangedItemsStyle.FontColor = System.Drawing.Color.Black;

        char[] Mychars = { ' ' };
        objComparisonSettings.WordsSeparatorChars = Mychars;
        

        // Get instance of GroupDocs.Comparison.Comparer and call method Compare.
        GroupDocs.Comparison.Comparer comparison = Common.getComparison();
        ICompareResult result = comparison.Compare(@"D:\GroupDocsTesting\old.docx", @"D:\GroupDocsTesting\New.docx", objComparisonSettings);

        // save result document to a file.
        result.SaveDocument(@"D:\GroupDocsTesting\result.docx");
    }

Find the attached sample documents Docs.zip (272.5 KB)

We are waiting for your replay…!!!


#2

@kranthireddyr,

Thanks for taking interest in GroupDocs.Comparison for .NET and posting your concerns.

This issue is reproduced at our end, we are further investigating it. Your investigation ticket ID is COMPARISONNET-1804. We’ll let you know as we have any update on it.

Can you please highlight this issue in the output document. We can see that deleted items are marked in the output - output.zip (256.0 KB). This output is generated using 19.1 version of the API.


#3

@atirtahir3

Thanks for the reply,
we found the disturbance in deleted items and added comments in table on Output.docx. Please find the attachment output (2).zip (260.2 KB)

we are looking for your response.


#4

@kranthireddyr,

Thanks for the explanation.
We are investigating this scenario. Your investigation ticket ID is COMPARISONNET-1805. We’ll notify you as we have any update on it.


#5

we are yet to take the licence for Groupdocs comparison,
we are blocked with multiple issues(Footnote & Endnote and superscript and subscript) with product.

we are waiting for resolutions ASAP.


#6

@kranthireddyr,

We are sorry for the inconvenience you are facing.

These issues are still under investigation. We’re trying our best to sort them out. You shall be notified as we have any further update.


#7

@kranthireddyr,

We are pleased to notify you that your issue COMPARISONNET-1804 is now resolved in version 19.3.1.


#8

@kranthireddyr,

Let me guide you about COMPARISONNET-1805.
You commented in the word document:

Added spaces in between the word(message as mes sage), But here it is showing like 2 lines,

Please note that API takes the two paragraphs (the one in source and the one in target) and then compares them. It sees that there is a big difference between them, hence it adds the source paragraph as deleted and the target as inserted.
Secondly,

Haven’t added/ deleted any Line breaks, but here showing it as 2 line breaks are deleted.

This is because you added two new lines to go to the next page in order to insert an image in the source document. Hence the line break was deleted change was shown.