mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-09 15:14:45 +00:00
Improve Word document opening: open read-only and invisble, avoiding unnecessary dialogs.
This commit is contained in:
parent
a5b6136e70
commit
fe7e9a5c6c
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ def close_word_app (app):
|
|||
|
||||
def open_wordfile (app, filename):
|
||||
"""Open given Word file with application object."""
|
||||
return app.Documents.Open(filename)
|
||||
return app.Documents.Open(filename, ReadOnly=True,
|
||||
AddToRecentFiles=False, Visible=False, NoEncodingDialog=True)
|
||||
|
||||
|
||||
def close_wordfile (doc):
|
||||
|
|
|
|||
Loading…
Reference in a new issue