I am using "netoffice" library for extracting the text from word files. This should be automated process.
However, when the word file is password protected, the alert windows is shown so the user needs to enter the password. Because this is automated process, the user does not enters the password, and the program stops here.
How can I detect if the word file is password protected with "netoffice", and if this is not possible, how can I disable the alert windows from showing up?
I tried setting DisplayAlerts to WdAlertLevel.wdAlertsNone, but it isn't working.
The following piece of code will help you skip password-protected files: