Free Support Forum - groupdocs.com

HTML Compare is not working in .Net


#1

Hi,

We are facing issue with HTML files Comparison

Used the below code to compare

  public string CompareDcumentsFromFileToOutputFileWithSettings(string SourceFileName, string TargetFileName)
    {
        GroupDocs.Comparison.Common.License.License license = new GroupDocs.Comparison.Common.License.License();
        license.SetLicense("GroupDocs.Comparison.lic");

        GroupDocs.Comparison.Common.ComparisonSettings.ComparisonSettings objComparisonSettings = new GroupDocs.Comparison.Common.ComparisonSettings.ComparisonSettings();
        objComparisonSettings.GenerateSummaryPage = false;
        objComparisonSettings.DeletedItemsStyle.StrikeThrough = true;
        objComparisonSettings.DeletedItemsStyle.FontColor = System.Drawing.Color.Red;

        objComparisonSettings.InsertedItemsStyle.FontColor = System.Drawing.Color.Green;

        GroupDocs.Comparison.Comparer comparison = new GroupDocs.Comparison.Comparer();


        GroupDocs.Comparison.Common.ICompareResult HTMLresult = comparison.Compare(SourceFileName, TargetFileName, objComparisonSettings);

        HTMLresult.SaveDocument("D:/1_Result.html");
    }

Source, Target, Result Files Comparision.zip (16.9 KB)

Extracted the Above input files using aspose.word(Word to HTML), then Compare is not working.


#2

@kranthireddyr,

I cannot find any attachment.
Please mention API version.


#3

Please provide the solution


#4

@kranthireddyr,

We are investigating this at our end. Your investigation ticket ID is COMPARISONNET-1908. As we have any further update, we’ll notify you.