How to detect if a doc document password protected

Posted by StuffHappens on Stack Overflow See other posts from Stack Overflow or by StuffHappens
Published on 2010-04-20T06:51:22Z Indexed on 2010/04/20 6:53 UTC
Read the original article Hit count: 270

Filed under:
|

Hello.

I have a folder with lots of doc-documents and I need to upload their context into database. The problem is that some of them are password protected and I don't know the password. I would like to skip them but I don't know how to detect if password protection presents.

If someone helps I'll appriciate it greatly.

P.S. Programming language is C#.

© Stack Overflow or respective owner

Related posts about office-interop

Related posts about c#