Hi,
is it possible to open password protected project using FileStream?
Using simple code:
public void OpenProject()
{
System.IO.FileStream fs = new System.IO.FileStream("PassOpen.mpp", System.IO.FileMode.Open);
try
{
Project doc = new Project(fs, “open”);
if (doc != null)
{
Console.WriteLine("Pass OK");
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
fs = null;
}
I am getting: "Project reading exception".
Sample project is attached.
Btw. I tried also to use String pass instead of "open" but same problem.