When one of the document has SpecialChar, compare fail with the Message:“Unable to cast object of type ‘Aspose.Words.SpecialChar’ to type ‘Aspose.Words.Run’.” .
Here the code :
{
Document d = new Document(Path.Combine(SampleFiles, "OrgSampleBookMarks.docx"));
Document d1 = new Document(Path.Combine(SampleFiles, "OrgSampleBookMarks2.docx"));
d.Compare(d1, "t", DateTime.Now);
d.Save(Path.Combine(SampleFiles, "CompareSample.Docx"));
}
We tested the scenario and managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17783. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.