Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document comparison is opposite from expected order #9

Open
speedy-sasquatch opened this issue Mar 11, 2020 · 0 comments
Open

Document comparison is opposite from expected order #9

speedy-sasquatch opened this issue Mar 11, 2020 · 0 comments
Assignees
Labels

Comments

@speedy-sasquatch
Copy link

Per the readme, the expected PowerShell call syntax is as follows:
powershell -File Diff-Word.ps1 oldfile.docx newfile.docx
However, the result is the opposite: Word treats newfile as the original and oldfile as the updated. This is because the Word command Document.Compare expects the syntax NewDocument.Compare(OldDocument, ...) but the PowerShell script uses OldDocument.Compare(NewDocument, ...) which explains the inverted result in Word. Unfortunately the correct syntax is very unclear in the Microsoft documentation so the confusion is quite understandable. However, the PowerShell script should align with the correct use of the Word command.

@ForNeVeR ForNeVeR self-assigned this Mar 12, 2020
@ForNeVeR ForNeVeR added the bug label Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants