Aspose.Tasks.Examples.CSharp.ConvertingProjectData.SaveProjectAsText.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
            
            // ExStart:SaveProjectAsText
            // Read the input Project file
            Project project = new Project(dataDir + "CreateProject2.mpp");

            // Save the Project as text
            project.Save(dataDir + "SaveProjectAsText_out.txt", SaveFileFormat.TXT);
            // ExEnd:SaveProjectAsText        
        }
    }
SaveProjectAsText