MPPSaveOptions Class |
Namespace: Aspose.Tasks.Saving
The MPPSaveOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | MPPSaveOptions | Initializes a new instance of the MPPSaveOptions class |
Name | Description | |
---|---|---|
![]() ![]() | ProtectionPassword |
Gets or sets a password which is used to protect a resulting MPP file. Currently is supported for MS Project 2010 and newer formats.
![]() Null value indicates that the project file is not protected. |
![]() ![]() | RemoveInvalidAssignments |
Gets or sets a value indicating whether to remove invalid resource assignments when saving to MPP.
![]() MS Project creates an empty resource assignment for each task. Set this flag to true to remove them on save. |
![]() ![]() | WriteViewData |
Gets or sets a value indicating whether to write view data when saving to MPP.
![]() View data includes Project.Views, Filters and Tables collections. |
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
using (var stream = new FileStream(OutDir + "EmptyProjectSaveStream_out.xml", FileMode.Create, FileAccess.Write)) { var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp"); // create save options var options = new MPPSaveOptions { // sets a value indicating whether to remove invalid resource assignments when saving to MPP RemoveInvalidAssignments = true }; // save MPP with options project.Save(stream, options); }