Skip to content

Commit 4aa0ed0

Browse files
author
Vasiliy Sinitsyn
committed
Updated to Aspose.Tasks for .NET 24.11.
1 parent 6212b23 commit 4aa0ed0

File tree

54 files changed

+680
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+680
-85
lines changed

english/net/aspose.tasks.saving/csvoptions/_index.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,37 @@ Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to save a p
4040
```csharp
4141
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
4242
var options = new CsvOptions
43-
{
44-
DataCategory = DataCategory.Resources, TextDelimiter = CsvTextDelimiter.Semicolon, Encoding = Encoding.Unicode, IncludeHeaders = true
45-
};
43+
{
44+
DataCategory = DataCategory.Resources,
45+
TextDelimiter = CsvTextDelimiter.Semicolon,
46+
Encoding = Encoding.Unicode, IncludeHeaders = true
47+
};
48+
4649
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
4750
```
4851

52+
Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to take the columns of the default Gantt Chart and
53+
54+
```csharp
55+
// save them to a CSV file.
56+
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
57+
58+
CsvOptions options = new CsvOptions();
59+
options.TextDelimiter = CsvTextDelimiter.Tab;
60+
61+
var view = project.DefaultView;
62+
options.View = ProjectView.GetDefaultGanttChartView();
63+
options.View.Columns.Clear();
64+
65+
foreach (var t in view.Table.TableFields)
66+
{
67+
var columnTitle = string.IsNullOrEmpty(t.Title) ? FieldHelper.GetDefaultFieldTitle(t.Field) : t.Title;
68+
options.View.Columns.Add(new GanttChartColumn(columnTitle, 10, t.Field));
69+
}
70+
71+
project.Save(OutDir + "CustomizeViewForCsvOptions_out.csv", options);
72+
```
73+
4974
### See Also
5075

5176
* class [SimpleSaveOptions](../simplesaveoptions/)

english/net/aspose.tasks.saving/csvoptions/csvoptions/_index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to save a p
2121
```csharp
2222
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
2323
var options = new CsvOptions
24-
{
25-
DataCategory = DataCategory.Resources, TextDelimiter = CsvTextDelimiter.Semicolon, Encoding = Encoding.Unicode, IncludeHeaders = true
26-
};
24+
{
25+
DataCategory = DataCategory.Resources,
26+
TextDelimiter = CsvTextDelimiter.Semicolon,
27+
Encoding = Encoding.Unicode, IncludeHeaders = true
28+
};
29+
2730
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
2831
```
2932

english/net/aspose.tasks.saving/csvoptions/datacategory/_index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to save a p
2121
```csharp
2222
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
2323
var options = new CsvOptions
24-
{
25-
DataCategory = DataCategory.Resources, TextDelimiter = CsvTextDelimiter.Semicolon, Encoding = Encoding.Unicode, IncludeHeaders = true
26-
};
24+
{
25+
DataCategory = DataCategory.Resources,
26+
TextDelimiter = CsvTextDelimiter.Semicolon,
27+
Encoding = Encoding.Unicode, IncludeHeaders = true
28+
};
29+
2730
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
2831
```
2932

english/net/aspose.tasks.saving/csvoptions/encoding/_index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to save a p
2121
```csharp
2222
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
2323
var options = new CsvOptions
24-
{
25-
DataCategory = DataCategory.Resources, TextDelimiter = CsvTextDelimiter.Semicolon, Encoding = Encoding.Unicode, IncludeHeaders = true
26-
};
24+
{
25+
DataCategory = DataCategory.Resources,
26+
TextDelimiter = CsvTextDelimiter.Semicolon,
27+
Encoding = Encoding.Unicode, IncludeHeaders = true
28+
};
29+
2730
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
2831
```
2932

english/net/aspose.tasks.saving/csvoptions/includeheaders/_index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to save a p
2121
```csharp
2222
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
2323
var options = new CsvOptions
24-
{
25-
DataCategory = DataCategory.Resources, TextDelimiter = CsvTextDelimiter.Semicolon, Encoding = Encoding.Unicode, IncludeHeaders = true
26-
};
24+
{
25+
DataCategory = DataCategory.Resources,
26+
TextDelimiter = CsvTextDelimiter.Semicolon,
27+
Encoding = Encoding.Unicode, IncludeHeaders = true
28+
};
29+
2730
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
2831
```
2932

english/net/aspose.tasks.saving/csvoptions/textdelimiter/_index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to save a p
2121
```csharp
2222
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
2323
var options = new CsvOptions
24-
{
25-
DataCategory = DataCategory.Resources, TextDelimiter = CsvTextDelimiter.Semicolon, Encoding = Encoding.Unicode, IncludeHeaders = true
26-
};
24+
{
25+
DataCategory = DataCategory.Resources,
26+
TextDelimiter = CsvTextDelimiter.Semicolon,
27+
Encoding = Encoding.Unicode, IncludeHeaders = true
28+
};
29+
2730
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
2831
```
2932

english/net/aspose.tasks.saving/csvtextdelimiter/_index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to save a p
3030
```csharp
3131
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
3232
var options = new CsvOptions
33-
{
34-
DataCategory = DataCategory.Resources, TextDelimiter = CsvTextDelimiter.Semicolon, Encoding = Encoding.Unicode, IncludeHeaders = true
35-
};
33+
{
34+
DataCategory = DataCategory.Resources,
35+
TextDelimiter = CsvTextDelimiter.Semicolon,
36+
Encoding = Encoding.Unicode, IncludeHeaders = true
37+
};
38+
3639
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
3740
```
3841

english/net/aspose.tasks.saving/datacategory/_index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ Shows how to use <see cref="Aspose.Tasks.Saving.CsvOptions" /> to save a p
2929
```csharp
3030
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
3131
var options = new CsvOptions
32-
{
33-
DataCategory = DataCategory.Resources, TextDelimiter = CsvTextDelimiter.Semicolon, Encoding = Encoding.Unicode, IncludeHeaders = true
34-
};
32+
{
33+
DataCategory = DataCategory.Resources,
34+
TextDelimiter = CsvTextDelimiter.Semicolon,
35+
Encoding = Encoding.Unicode, IncludeHeaders = true
36+
};
37+
3538
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
3639
```
3740

english/net/aspose.tasks.saving/mppsaveoptions/_index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ public class MPPSaveOptions : SimpleSaveOptions
2424

2525
| Name | Description |
2626
| --- | --- |
27+
| [ClearVba](../../aspose.tasks.saving/mppsaveoptions/clearvba/) { get; set; } | Gets or sets a value indicating whether to remove existing VBA macros data when saving a project to MPP format. |
2728
| [ProtectionPassword](../../aspose.tasks.saving/mppsaveoptions/protectionpassword/) { getset; } | 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. |
2829
| [RemoveInvalidAssignments](../../aspose.tasks.saving/mppsaveoptions/removeinvalidassignments/) { getset; } | 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. |
2930
| [SaveFormat](../../aspose.tasks.saving/simplesaveoptions/saveformat/) { get; } | Gets or sets the format in which the document will be saved if this save options object is used. |
3031
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
3132
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { getset; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
32-
| [WriteFilters](../../aspose.tasks.saving/mppsaveoptions/writefilters/) { getset; } | Gets or sets a value indicating whether to write filter data when saving to MPP. Filter data includes Project.TaskFilters and Project.ResourceFilters collections. |
33-
| [WriteViewData](../../aspose.tasks.saving/mppsaveoptions/writeviewdata/) { getset; } | Gets or sets a value indicating whether to write view data when saving to MPP. View data includes Project.Views, Filters and Tables collections. |
33+
| [WriteFilters](../../aspose.tasks.saving/mppsaveoptions/writefilters/) { getset; } | Gets or 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. |
34+
| [WriteGroups](../../aspose.tasks.saving/mppsaveoptions/writegroups/) { getset; } | Gets or 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. |
35+
| [WriteViewData](../../aspose.tasks.saving/mppsaveoptions/writeviewdata/) { getset; } | Gets or 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. |
3436

3537
## Examples
3638

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: MPPSaveOptions.ClearVba
3+
second_title: Aspose.Tasks for .NET API Reference
4+
description: MPPSaveOptions property. Gets or sets a value indicating whether to remove existing VBA macros data when saving a project to MPP format
5+
type: docs
6+
weight: 20
7+
url: /net/aspose.tasks.saving/mppsaveoptions/clearvba/
8+
---
9+
## MPPSaveOptions.ClearVba property
10+
11+
Gets or sets a value indicating whether to remove existing VBA macros data when saving a project to MPP format.
12+
13+
```csharp
14+
public bool ClearVba { get; set; }
15+
```
16+
17+
### See Also
18+
19+
* class [MPPSaveOptions](../)
20+
* namespace [Aspose.Tasks.Saving](../../mppsaveoptions/)
21+
* assembly [Aspose.Tasks](../../../)
22+
23+

0 commit comments

Comments
 (0)