You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I'm trying to use Document Server as a tool for merging multiple versions of a single document.
I have three versions: the original one, and two independent versions from it.
I use function AscCommonWord.CompareDocuments for generating a version with a comparison.
When I compare the version with the original one, there are no problems, but I don't understand how to compare three at once (sequentially).
I'm trying this code:
builder.OpenFile(GetOriginalFile);
var file1 = builderJS.OpenTmpFile(GetFileV1);
AscCommonWord.CompareDocuments(Api, file1, null);
file1.Close();
var file2 = builderJS.OpenTmpFile(GetFileV2);
AscCommonWord.CompareDocuments(Api, file2, null);
file2.Close();
builder.SaveFile("docx", "Result.docx");
builder.CloseFile();
But when I call /docbuilder, I get a file in response that includes data from file1 and file2, without data from the original file.
Is it possible to compare three or more versions of a file using CompareDocuments or perhaps there is an alternative API?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
I'm trying to use Document Server as a tool for merging multiple versions of a single document.
I have three versions: the original one, and two independent versions from it.
I use function AscCommonWord.CompareDocuments for generating a version with a comparison.
When I compare the version with the original one, there are no problems, but I don't understand how to compare three at once (sequentially).
I'm trying this code:
But when I call /docbuilder, I get a file in response that includes data from file1 and file2, without data from the original file.
Is it possible to compare three or more versions of a file using CompareDocuments or perhaps there is an alternative API?
Beta Was this translation helpful? Give feedback.
All reactions