Skip to content

Commit 81a7526

Browse files
author
Vasiliy Sinitsyn
committed
Updated to Aspose.Tasks for .NET 26.1.
1 parent 79fb685 commit 81a7526

172 files changed

Lines changed: 391 additions & 184 deletions

File tree

Some content is hidden

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

english/net/aspose.tasks.connectivity/primaveradbsettings/_index.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,35 @@ public class PrimaveraDbSettings : DbSettings
3333
Shows how to import a project from a Primavera database.
3434

3535
```csharp
36-
var sb = new SqlConnectionStringBuilder();
37-
sb.DataSource = "192.168.56.3,1433";
38-
sb.Encrypt = true;
39-
sb.TrustServerCertificate = true;
40-
sb.InitialCatalog = "PrimaveraEDB";
41-
sb.NetworkLibrary = "DBMSSOCN";
42-
sb.UserID = "privuser";
43-
sb.Password = "***";
44-
4536
// Initialize a new instance of the PrimaveraDbSettings class with connection string and project id
46-
var settings = new PrimaveraDbSettings(sb.ConnectionString, 4502);
37+
var settings = new PrimaveraDbSettings(GetConnectionString(), 4502);
4738

4839
Console.WriteLine("Project UID to read: " + settings.ProjectId);
4940

5041
// read the project with UID = 4502
5142
var project = new Project(settings);
52-
Console.WriteLine(project.Get(Prj.Uid));
43+
Console.WriteLine(project.Uid);
44+
Console.WriteLine(project.Name);
45+
Console.WriteLine(project.PrimaveraProperties.ShortName);
46+
```
47+
48+
Shows how to get brief info of projects from a Primavera database.
49+
50+
```csharp
51+
var settings = new PrimaveraDbSettings(GetConnectionString(), 0);
52+
53+
var reader = new PrimaveraDbReader(settings);
54+
var projectInfos = reader.GetProjectInfos();
55+
56+
foreach (var info in projectInfos)
57+
{
58+
Console.WriteLine("{0} - '{1}' - '{2}'", info.Uid, info.ShortName, info.Name);
59+
}
60+
61+
var firstProject = reader.LoadProject(projectInfos[0].Uid);
62+
Console.WriteLine(firstProject.Uid);
63+
Console.WriteLine(firstProject.Name);
64+
Console.WriteLine(firstProject.PrimaveraProperties.ShortName);
5365
```
5466

5567
### See Also

english/net/aspose.tasks.connectivity/primaveradbsettings/primaveradbsettings/_index.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,16 @@ public PrimaveraDbSettings(string connectionString, int projectId)
2424
Shows how to import a project from a Primavera database.
2525

2626
```csharp
27-
var sb = new SqlConnectionStringBuilder();
28-
sb.DataSource = "192.168.56.3,1433";
29-
sb.Encrypt = true;
30-
sb.TrustServerCertificate = true;
31-
sb.InitialCatalog = "PrimaveraEDB";
32-
sb.NetworkLibrary = "DBMSSOCN";
33-
sb.UserID = "privuser";
34-
sb.Password = "***";
35-
3627
// Initialize a new instance of the PrimaveraDbSettings class with connection string and project id
37-
var settings = new PrimaveraDbSettings(sb.ConnectionString, 4502);
28+
var settings = new PrimaveraDbSettings(GetConnectionString(), 4502);
3829

3930
Console.WriteLine("Project UID to read: " + settings.ProjectId);
4031

4132
// read the project with UID = 4502
4233
var project = new Project(settings);
43-
Console.WriteLine(project.Get(Prj.Uid));
34+
Console.WriteLine(project.Uid);
35+
Console.WriteLine(project.Name);
36+
Console.WriteLine(project.PrimaveraProperties.ShortName);
4437
```
4538

4639
### See Also

english/net/aspose.tasks.connectivity/primaveradbsettings/projectid/_index.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,16 @@ public int ProjectId { get; }
1919
Shows how to import a project from a Primavera database.
2020

2121
```csharp
22-
var sb = new SqlConnectionStringBuilder();
23-
sb.DataSource = "192.168.56.3,1433";
24-
sb.Encrypt = true;
25-
sb.TrustServerCertificate = true;
26-
sb.InitialCatalog = "PrimaveraEDB";
27-
sb.NetworkLibrary = "DBMSSOCN";
28-
sb.UserID = "privuser";
29-
sb.Password = "***";
30-
3122
// Initialize a new instance of the PrimaveraDbSettings class with connection string and project id
32-
var settings = new PrimaveraDbSettings(sb.ConnectionString, 4502);
23+
var settings = new PrimaveraDbSettings(GetConnectionString(), 4502);
3324

3425
Console.WriteLine("Project UID to read: " + settings.ProjectId);
3526

3627
// read the project with UID = 4502
3728
var project = new Project(settings);
38-
Console.WriteLine(project.Get(Prj.Uid));
29+
Console.WriteLine(project.Uid);
30+
Console.WriteLine(project.Name);
31+
Console.WriteLine(project.PrimaveraProperties.ShortName);
3932
```
4033

4134
### See Also

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Contains classes for saving a project to different formats.
2828
| [SimpleSaveOptions](./simplesaveoptions/) | This is an abstract base class that allow the user to specify basic options when saving a project into a particular format. |
2929
| [Spreadsheet2003SaveOptions](./spreadsheet2003saveoptions/) | Allows to specify additional options when rendering project pages to Spreadsheet2003. |
3030
| [SvgOptions](./svgoptions/) | Allows to specify additional options when rendering project pages to SVG. |
31+
| [TaskLinkDrawingCallbackDelegate](./tasklinkdrawingcallbackdelegate/) | Represents a callback that is called when a task link is rendered in a Gantt chart view. |
3132
| [XamlOptions](./xamloptions/) | /// Allows to specify additional options when rendering project pages to XAML. |
3233
| [XlsxOptions](./xlsxoptions/) | Allows to specify additional options when rendering project pages to XLSX. |
3334
| [XpsOptions](./xpsoptions/) | Allows to specify additional options when rendering project pages to XPS. |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public class HtmlSaveOptions : SaveOptions
5656
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { getset; } | Gets or sets a value indicating whether subtasks on the summary task bar should be marked. For subtasks, the Rollup field indicates whether information on the subtask Gantt bars will be rolled up to the summary task bar. For summary tasks, the Rollup field indicates whether the summary task bar displays rolled up bars. You must have the Rollup field for summary tasks set to Yes for any subtasks to roll up to them. |
5757
| [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. |
5858
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
59+
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { getset; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
5960
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
6061
| [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. |
6162
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public class ImageSaveOptions : SaveOptions
4949
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { getset; } | Gets or sets a value indicating whether subtasks on the summary task bar should be marked. For subtasks, the Rollup field indicates whether information on the subtask Gantt bars will be rolled up to the summary task bar. For summary tasks, the Rollup field indicates whether the summary task bar displays rolled up bars. You must have the Rollup field for summary tasks set to Yes for any subtasks to roll up to them. |
5050
| [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. |
5151
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
52+
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { getset; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
5253
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
5354
| [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. |
5455
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class PdfSaveOptions : SaveOptions
5050
| [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. |
5151
| [SaveToSeparateFiles](../../aspose.tasks.saving/pdfsaveoptions/savetoseparatefiles/) { getset; } | Gets or sets a value indicating whether to save project pages to separate files. |
5252
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
53+
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { getset; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
5354
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
5455
| [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. |
5556
| [TextCompression](../../aspose.tasks.saving/pdfsaveoptions/textcompression/) { getset; } | Gets or sets a compression type to be used for all content streams except images. Default is Flate. |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class PrintOptions : SaveOptions
4242
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { getset; } | Gets or sets a value indicating whether subtasks on the summary task bar should be marked. For subtasks, the Rollup field indicates whether information on the subtask Gantt bars will be rolled up to the summary task bar. For summary tasks, the Rollup field indicates whether the summary task bar displays rolled up bars. You must have the Rollup field for summary tasks set to Yes for any subtasks to roll up to them. |
4343
| [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. |
4444
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
45+
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { getset; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
4546
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
4647
| [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. |
4748
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public abstract class SaveOptions : SimpleSaveOptions
3636
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { getset; } | Gets or sets a value indicating whether subtasks on the summary task bar should be marked. For subtasks, the Rollup field indicates whether information on the subtask Gantt bars will be rolled up to the summary task bar. For summary tasks, the Rollup field indicates whether the summary task bar displays rolled up bars. You must have the Rollup field for summary tasks set to Yes for any subtasks to roll up to them. |
3737
| [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. |
3838
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
39+
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { getset; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
3940
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
4041
| [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. |
4142
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: SaveOptions.TaskLinkDrawingCallback
3+
second_title: Aspose.Tasks for .NET API Reference
4+
description: SaveOptions property. Gets or sets a callback that can be used to customize some aspects of task links rendering
5+
type: docs
6+
weight: 180
7+
url: /net/aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/
8+
---
9+
## SaveOptions.TaskLinkDrawingCallback property
10+
11+
Gets or sets a callback that can be used to customize some aspects of task links rendering.
12+
13+
```csharp
14+
public TaskLinkDrawingCallbackDelegate TaskLinkDrawingCallback { get; set; }
15+
```
16+
17+
## Remarks
18+
19+
Is only applicable when Gantt chart view is rendered.
20+
21+
### See Also
22+
23+
* delegate [TaskLinkDrawingCallbackDelegate](../../tasklinkdrawingcallbackdelegate/)
24+
* class [SaveOptions](../)
25+
* namespace [Aspose.Tasks.Saving](../../saveoptions/)
26+
* assembly [Aspose.Tasks](../../../)
27+
28+

0 commit comments

Comments
 (0)