Load file readonly

May 14, 2012 at 11:22 AM

DocX.Load method requires readwrite permissions for docx file - it is not required and in iis environment can harm. Needed change is small:

public static DocX Load(string filename)
        {
<SKIPPED>

            using (FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read))
<SKIPPED>
        }