MPPSaveOptions
Inheritance: java.lang.Object, com.aspose.tasks.SimpleSaveOptions
public class MPPSaveOptions extends SimpleSaveOptions
Allows to specify additional options when saving project data to MPP.
Constructors
Constructor | Description |
---|---|
MPPSaveOptions() | Initializes a new instance of the MPPSaveOptions class. |
Methods
Method | Description |
---|---|
getClearVba() | Gets a value indicating whether to remove existing VBA macros data when saving a project to MPP format. |
getProtectionPassword() | Gets a password which is used to protect a resulting MPP file. |
getRemoveInvalidAssignments() | Gets a value indicating whether to remove invalid resource assignments when saving to MPP. |
getWriteFilters() | Gets a value indicating whether to write filter data when saving a project to MPP for format. |
getWriteGroups() | Gets a value indicating whether to write groups data when saving a project to MPP for format. |
getWriteViewData() | Gets a value indicating whether to write view data when saving a project to MPP format. |
setClearVba(boolean value) | Sets a value indicating whether to remove existing VBA macros data when saving a project to MPP format. |
setProtectionPassword(String value) | Sets a password which is used to protect a resulting MPP file. |
setRemoveInvalidAssignments(boolean value) | Sets a value indicating whether to remove invalid resource assignments when saving to MPP. |
setWriteFilters(boolean value) | Sets a value indicating whether to write filter data when saving a project to MPP for format. |
setWriteGroups(boolean value) | Sets a value indicating whether to write groups data when saving a project to MPP for format. |
setWriteViewData(boolean value) | Sets a value indicating whether to write view data when saving a project to MPP format. |
MPPSaveOptions()
public MPPSaveOptions()
Initializes a new instance of the MPPSaveOptions class.
getClearVba()
public final boolean getClearVba()
Gets a value indicating whether to remove existing VBA macros data when saving a project to MPP format.
Returns: boolean - a value indicating whether to remove existing VBA macros data when saving a project to MPP format.
getProtectionPassword()
public final String getProtectionPassword()
Gets 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.
Returns: java.lang.String - a password which is used to protect a resulting MPP file.
getRemoveInvalidAssignments()
public final boolean getRemoveInvalidAssignments()
Gets 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.
Returns: boolean - a value indicating whether to remove invalid resource assignments when saving to MPP.
getWriteFilters()
public final boolean getWriteFilters()
Gets a value indicating whether to write filter data when saving a project to MPP for format.
Filter data includes Project.TaskFilters and Project.ResourceFilters collections.
Currently supported for MSP 2010 or newer formats.
Returns: boolean - a value indicating whether to write filter data when saving a project to MPP for format.
getWriteGroups()
public final boolean getWriteGroups()
Gets a value indicating whether to write groups data when saving a project to MPP for format.
Group data includes Project.TaskGroups and Project.ResourceGroups collections.
Returns: boolean - a value indicating whether to write groups data when saving a project to MPP for format.
getWriteViewData()
public final boolean getWriteViewData()
Gets a value indicating whether to write view data when saving a project to MPP format.
View data includes Project.Views, Filters and Tables collections.
Returns: boolean - a value indicating whether to write view data when saving a project to MPP format.
setClearVba(boolean value)
public final void setClearVba(boolean value)
Sets a value indicating whether to remove existing VBA macros data when saving a project to MPP format.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether to remove existing VBA macros data when saving a project to MPP format. |
setProtectionPassword(String value)
public final void setProtectionPassword(String value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | a password which is used to protect a resulting MPP file. |
setRemoveInvalidAssignments(boolean value)
public final void setRemoveInvalidAssignments(boolean value)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether to remove invalid resource assignments when saving to MPP. |
setWriteFilters(boolean value)
public final void setWriteFilters(boolean value)
Sets a value indicating whether to write filter data when saving a project to MPP for format.
Filter data includes Project.TaskFilters and Project.ResourceFilters collections.
Currently supported for MSP 2010 or newer formats.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether to write filter data when saving a project to MPP for format. |
setWriteGroups(boolean value)
public final void setWriteGroups(boolean value)
Sets a value indicating whether to write groups data when saving a project to MPP for format.
Group data includes Project.TaskGroups and Project.ResourceGroups collections.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether to write groups data when saving a project to MPP for format. |
setWriteViewData(boolean value)
public final void setWriteViewData(boolean value)
Sets a value indicating whether to write view data when saving a project to MPP format.
View data includes Project.Views, Filters and Tables collections.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether to write view data when saving a project to MPP format. |