Skip to content

Commit c27576d

Browse files
committed
Update Program.cs
1 parent 21c7991 commit c27576d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/DiffEngineWord/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ static int Main(string[] args)
8181
comparedDoc.ShowSpellingErrors = false;
8282
comparedDoc.ShowGrammaticalErrors = false;
8383

84+
//TODO: make this an option
85+
// Make document read-only (wdAllowOnlyReading = 3)
86+
//comparedDoc.Protect(Type: 3);
87+
8488
word.Visible = true;
8589

8690
// Get process from Word's window handle and assign to job

0 commit comments

Comments
 (0)