Spreadsheet2003SaveOptions.AssignmentView
Contents
[
Hide
]Spreadsheet2003SaveOptions.AssignmentView property
Gets or sets a list of the assignments view columns to render (AssignmentViewColumn
).
public ProjectView AssignmentView { get; set; }
Examples
Shows how to add columns to be exported during export project into Spreadsheet2003 format.
var project = new Project(DataDir + "CreateProject2.mpp");
var options = new Spreadsheet2003SaveOptions();
var ganttChartColumn = new GanttChartColumn("WBS", 100, delegate(Task task) { return task.Get(Tsk.WBS); });
options.View.Columns.Add(ganttChartColumn);
var resourceViewColumn = new ResourceViewColumn("Cost center", 100, delegate(Resource resource) { return resource.Get(Rsc.CostCenter); });
options.ResourceView.Columns.Add(resourceViewColumn);
var assignmentViewColumn = new AssignmentViewColumn("Notes", 200, delegate(ResourceAssignment assignment) { return assignment.Get(Asn.NotesText); });
options.AssignmentView.Columns.Add(assignmentViewColumn);
project.Save(OutDir + "UsingSpreadsheet2003SaveOptions_out.xml", options);
See Also
- class ProjectView
- class Spreadsheet2003SaveOptions
- namespace Aspose.Tasks.Saving
- assembly Aspose.Tasks