good day, when comparing documents, the system correctly evaluates the change, just like MS Word, but the revision mark does not correspond to the difference at all.
could you take a look at it for me.
Thank you in advance
good day, when comparing documents, the system correctly evaluates the change, just like MS Word, but the revision mark does not correspond to the difference at all.
could you take a look at it for me.
Thank you in advance
@benestom Could you please attach your input and output documents here for our reference? We will check the problem on our side and provide you more information.
I am sending documents that need to be compared.
dB.docx (46.5 KB)
diference.png (24.8 KB)
dA.docx (37.3 KB)
@benestom I have compared document using the following code and the hyperlinks comparison result is the same as MS Word’s comparison output:
Document docA = new Document(@"C:\Temp\dA.docx");
Document docB = new Document(@"C:\Temp\dB.docx");
docA .Compare(docB, "test", DateTime.Now);
docA .Save(@"C:\Temp\out.docx");
out.docx (37.7 KB)
Good day,
I must have copied the wrong file and.
I will rather introduce you to my problem. The document contains a link that has “{” “}” in the url (in xml dA.zip\word\_rels
)
Is it possible to fix the link somehow so that I have the correct characters “%7b” “%7d”
In visual studio it shows as “%7b” “%7d” but in the xml document there are still “{”. Even uploading didn’t help me.
Thanks in advance for any advice.
TB.
@benestom You can use the following code to fix the links in the document:
Document docA = new Document(@"C:\Temp\dA.docx");
docA.Range.Fields.Where(f => f.Type == FieldType.FieldHyperlink).Cast<FieldHyperlink>().ToList()
.ForEach(f => f.Address = f.Address.Replace("{", "%7b").Replace("}", "%7d"));
docA.Save(@"C:\Temp\out.docx");