Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 23 additions & 11 deletions english/net/aspose.tasks.connectivity/primaveradbsettings/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,35 @@ public class PrimaveraDbSettings : DbSettings
Shows how to import a project from a Primavera database.

```csharp
var sb = new SqlConnectionStringBuilder();
sb.DataSource = "192.168.56.3,1433";
sb.Encrypt = true;
sb.TrustServerCertificate = true;
sb.InitialCatalog = "PrimaveraEDB";
sb.NetworkLibrary = "DBMSSOCN";
sb.UserID = "privuser";
sb.Password = "***";

// Initialize a new instance of the PrimaveraDbSettings class with connection string and project id
var settings = new PrimaveraDbSettings(sb.ConnectionString, 4502);
var settings = new PrimaveraDbSettings(GetConnectionString(), 4502);

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

// read the project with UID = 4502
var project = new Project(settings);
Console.WriteLine(project.Get(Prj.Uid));
Console.WriteLine(project.Uid);
Console.WriteLine(project.Name);
Console.WriteLine(project.PrimaveraProperties.ShortName);
```

Shows how to get brief info of projects from a Primavera database.

```csharp
var settings = new PrimaveraDbSettings(GetConnectionString(), 0);

var reader = new PrimaveraDbReader(settings);
var projectInfos = reader.GetProjectInfos();

foreach (var info in projectInfos)
{
Console.WriteLine("{0} - '{1}' - '{2}'", info.Uid, info.ShortName, info.Name);
}

var firstProject = reader.LoadProject(projectInfos[0].Uid);
Console.WriteLine(firstProject.Uid);
Console.WriteLine(firstProject.Name);
Console.WriteLine(firstProject.PrimaveraProperties.ShortName);
```

### See Also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,16 @@ public PrimaveraDbSettings(string connectionString, int projectId)
Shows how to import a project from a Primavera database.

```csharp
var sb = new SqlConnectionStringBuilder();
sb.DataSource = "192.168.56.3,1433";
sb.Encrypt = true;
sb.TrustServerCertificate = true;
sb.InitialCatalog = "PrimaveraEDB";
sb.NetworkLibrary = "DBMSSOCN";
sb.UserID = "privuser";
sb.Password = "***";

// Initialize a new instance of the PrimaveraDbSettings class with connection string and project id
var settings = new PrimaveraDbSettings(sb.ConnectionString, 4502);
var settings = new PrimaveraDbSettings(GetConnectionString(), 4502);

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

// read the project with UID = 4502
var project = new Project(settings);
Console.WriteLine(project.Get(Prj.Uid));
Console.WriteLine(project.Uid);
Console.WriteLine(project.Name);
Console.WriteLine(project.PrimaveraProperties.ShortName);
```

### See Also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,16 @@ public int ProjectId { get; }
Shows how to import a project from a Primavera database.

```csharp
var sb = new SqlConnectionStringBuilder();
sb.DataSource = "192.168.56.3,1433";
sb.Encrypt = true;
sb.TrustServerCertificate = true;
sb.InitialCatalog = "PrimaveraEDB";
sb.NetworkLibrary = "DBMSSOCN";
sb.UserID = "privuser";
sb.Password = "***";

// Initialize a new instance of the PrimaveraDbSettings class with connection string and project id
var settings = new PrimaveraDbSettings(sb.ConnectionString, 4502);
var settings = new PrimaveraDbSettings(GetConnectionString(), 4502);

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

// read the project with UID = 4502
var project = new Project(settings);
Console.WriteLine(project.Get(Prj.Uid));
Console.WriteLine(project.Uid);
Console.WriteLine(project.Name);
Console.WriteLine(project.PrimaveraProperties.ShortName);
```

### See Also
Expand Down
1 change: 1 addition & 0 deletions english/net/aspose.tasks.saving/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Contains classes for saving a project to different formats.
| [SimpleSaveOptions](./simplesaveoptions/) | This is an abstract base class that allow the user to specify basic options when saving a project into a particular format. |
| [Spreadsheet2003SaveOptions](./spreadsheet2003saveoptions/) | Allows to specify additional options when rendering project pages to Spreadsheet2003. |
| [SvgOptions](./svgoptions/) | Allows to specify additional options when rendering project pages to SVG. |
| [TaskLinkDrawingCallbackDelegate](./tasklinkdrawingcallbackdelegate/) | Represents a callback that is called when a task link is rendered in a Gantt chart view. |
| [XamlOptions](./xamloptions/) | /// Allows to specify additional options when rendering project pages to XAML. |
| [XlsxOptions](./xlsxoptions/) | Allows to specify additional options when rendering project pages to XLSX. |
| [XpsOptions](./xpsoptions/) | Allows to specify additional options when rendering project pages to XPS. |
Expand Down
1 change: 1 addition & 0 deletions english/net/aspose.tasks.saving/htmlsaveoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public class HtmlSaveOptions : SaveOptions
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { get; set; } | 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. |
| [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. |
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { get; set; } | Gets or sets the date to start rendering from. |
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { get; set; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { get; set; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { get; set; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { get; set; } | Gets or sets the list of text styles that applied during rendering of a project view. |
Expand Down
1 change: 1 addition & 0 deletions english/net/aspose.tasks.saving/imagesaveoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class ImageSaveOptions : SaveOptions
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { get; set; } | 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. |
| [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. |
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { get; set; } | Gets or sets the date to start rendering from. |
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { get; set; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { get; set; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { get; set; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { get; set; } | Gets or sets the list of text styles that applied during rendering of a project view. |
Expand Down
1 change: 1 addition & 0 deletions english/net/aspose.tasks.saving/pdfsaveoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class PdfSaveOptions : SaveOptions
| [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. |
| [SaveToSeparateFiles](../../aspose.tasks.saving/pdfsaveoptions/savetoseparatefiles/) { get; set; } | Gets or sets a value indicating whether to save project pages to separate files. |
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { get; set; } | Gets or sets the date to start rendering from. |
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { get; set; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { get; set; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { get; set; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
| [TextCompression](../../aspose.tasks.saving/pdfsaveoptions/textcompression/) { get; set; } | Gets or sets a compression type to be used for all content streams except images. Default is Flate. |
Expand Down
1 change: 1 addition & 0 deletions english/net/aspose.tasks.saving/printoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class PrintOptions : SaveOptions
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { get; set; } | 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. |
| [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. |
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { get; set; } | Gets or sets the date to start rendering from. |
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { get; set; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { get; set; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { get; set; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { get; set; } | Gets or sets the list of text styles that applied during rendering of a project view. |
Expand Down
1 change: 1 addition & 0 deletions english/net/aspose.tasks.saving/saveoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public abstract class SaveOptions : SimpleSaveOptions
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { get; set; } | 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. |
| [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. |
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { get; set; } | Gets or sets the date to start rendering from. |
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { get; set; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { get; set; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { get; set; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { get; set; } | Gets or sets the list of text styles that applied during rendering of a project view. |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: SaveOptions.TaskLinkDrawingCallback
second_title: Aspose.Tasks for .NET API Reference
description: SaveOptions property. Gets or sets a callback that can be used to customize some aspects of task links rendering
type: docs
weight: 180
url: /net/aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/
---
## SaveOptions.TaskLinkDrawingCallback property

Gets or sets a callback that can be used to customize some aspects of task links rendering.

```csharp
public TaskLinkDrawingCallbackDelegate TaskLinkDrawingCallback { get; set; }
```

## Remarks

Is only applicable when Gantt chart view is rendered.

### See Also

* delegate [TaskLinkDrawingCallbackDelegate](../../tasklinkdrawingcallbackdelegate/)
* class [SaveOptions](../)
* namespace [Aspose.Tasks.Saving](../../saveoptions/)
* assembly [Aspose.Tasks](../../../)


Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: SaveOptions.TextStyles
second_title: Aspose.Tasks for .NET API Reference
description: SaveOptions property. Gets or sets the list of text styles that applied during rendering of a project view
type: docs
weight: 180
weight: 190
url: /net/aspose.tasks.saving/saveoptions/textstyles/
---
## SaveOptions.TextStyles property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: SaveOptions.Timescale
second_title: Aspose.Tasks for .NET API Reference
description: SaveOptions property. Gets or sets the Timescale value which is used to control how timescale if present is rendered when project is saved to graphical format
type: docs
weight: 190
weight: 200
url: /net/aspose.tasks.saving/saveoptions/timescale/
---
## SaveOptions.Timescale property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: SaveOptions.TimescaleFitBehavior
second_title: Aspose.Tasks for .NET API Reference
description: SaveOptions property. Gets or sets a behavior which define how to align right end of the timescale with the page end
type: docs
weight: 200
weight: 210
url: /net/aspose.tasks.saving/saveoptions/timescalefitbehavior/
---
## SaveOptions.TimescaleFitBehavior property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: SaveOptions.UseGradientBrush
second_title: Aspose.Tasks for .NET API Reference
description: SaveOptions property. Gets or sets a value indicating whether gradient brush should be used when rendering Gantt Chart
type: docs
weight: 210
weight: 220
url: /net/aspose.tasks.saving/saveoptions/usegradientbrush/
---
## SaveOptions.UseGradientBrush property
Expand Down
2 changes: 1 addition & 1 deletion english/net/aspose.tasks.saving/saveoptions/view/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: SaveOptions.View
second_title: Aspose.Tasks for .NET API Reference
description: SaveOptions property. Gets or sets a list of the view columns to render GanttChartColumn. If not set then task ids task names start and finish are rendered only. If both View and ViewSettings properties are set columns from View overrides columns from ViewSettings
type: docs
weight: 220
weight: 230
url: /net/aspose.tasks.saving/saveoptions/view/
---
## SaveOptions.View property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: SaveOptions.ViewSettings
second_title: Aspose.Tasks for .NET API Reference
description: SaveOptions property. Gets or sets a view View to render. You can use this options to explicitly specify which view should be saved to PDF HTML or Image formats. If this property is set PresentationFormat property is ignored when project is saved. View should be from one of the following screen Screen Gantt TaskSheet TaskUsage ResourceSheet ResourceUsage
type: docs
weight: 230
weight: 240
url: /net/aspose.tasks.saving/saveoptions/viewsettings/
---
## SaveOptions.ViewSettings property
Expand Down
1 change: 1 addition & 0 deletions english/net/aspose.tasks.saving/svgoptions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class SvgOptions : SaveOptions
| [RollUpGanttBars](../../aspose.tasks.saving/saveoptions/rollupganttbars/) { get; set; } | 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. |
| [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. |
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { get; set; } | Gets or sets the date to start rendering from. |
| [TaskLinkDrawingCallback](../../aspose.tasks.saving/saveoptions/tasklinkdrawingcallback/) { get; set; } | Gets or sets a callback that can be used to customize some aspects of task links rendering. |
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { get; set; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { get; set; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { get; set; } | Gets or sets the list of text styles that applied during rendering of a project view. |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Delegate TaskLinkDrawingCallbackDelegate
second_title: Aspose.Tasks for .NET API Reference
description: Represents a callback that is called when a task link is rendered in a Gantt chart view
type: docs
weight: 2210
url: /net/aspose.tasks.saving/tasklinkdrawingcallbackdelegate/
---
## TaskLinkDrawingCallbackDelegate delegate

Represents a callback that is called when a task link is rendered in a Gantt chart view.

```csharp
public delegate void TaskLinkDrawingCallbackDelegate(TaskLinkDrawingArgs args);
```

| Parameter | Type | Description |
| --- | --- | --- |
| args | TaskLinkDrawingArgs | the instance of the [`TaskLinkDrawingArgs`](../../aspose.tasks/tasklinkdrawingargs/) class that contains the callback data. |

### See Also

* class [TaskLinkDrawingArgs](../../aspose.tasks/tasklinkdrawingargs/)
* namespace [Aspose.Tasks.Saving](../../aspose.tasks.saving/)
* assembly [Aspose.Tasks](../../)


2 changes: 1 addition & 1 deletion english/net/aspose.tasks.saving/tiffcompression/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Enum TiffCompression
second_title: Aspose.Tasks for .NET API Reference
description: Aspose.Tasks.Saving.TiffCompression enum. Specifies what type of compression to apply when saving pages to the TIFF format
type: docs
weight: 2210
weight: 2220
url: /net/aspose.tasks.saving/tiffcompression/
---
## TiffCompression enumeration
Expand Down
Loading