Ayodele 0 Newbie Poster

I want to know how i can detect whether an office file (word, excel, etc) are password protected without having to open the file itself. The interop in vb .net has a function called HasPassword but you have you open the document first. Please help!