public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
// ExStart:SaveProjectAsXLSX
// Read the input Project file
Project project = new Project(dataDir + "CreateProject2.mpp");
// Save the Project as XLSX
project.Save(dataDir + "SaveProjectAsXLSX_out.xlsx", SaveFileFormat.XLSX);
// ExEnd:SaveProjectAsXLSX
}
}