Forum Discussion
2 Replies
- AlexKarasCommunity HeroHi Elya,
Quick googling with the assumption that you are using Word as an automation object, makes me think that you should look at the ReadOnly property of the Word.Document object. E.g.:
http://support.microsoft.com/kb/275976
http://www.daniweb.com/forums/thread170857.html - Pavel_1ContributorHi,
You can also check file attributes via aqFileSystem object
function IsReadOnly(Path)
{
if ((aqFileSystem.GetFileInfo(Path).Attributes & aqFileSystem.faReadOnly) == aqFileSystem.faReadOnly)
return true; //file is read-only
else
return false; //file is not read-only
}