Skip to content

Commit 747733c

Browse files
committed
project management with advanced options
1 parent 9cac0a3 commit 747733c

1 file changed

Lines changed: 36 additions & 51 deletions

File tree

net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-project-management-with-advanced-options.md

Lines changed: 36 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ id: convert-to-project-management-with-advanced-options
33
url: conversion/net/convert-to-project-management-with-advanced-options
44
title: Convert to Project Management formats with advanced options
55
weight: 17
6-
description: "Learn how to convert documents to Microsoft Project and Primavera formats (MPP, MPT, MPX, XER) using GroupDocs.Conversion for .NET."
6+
description: "Learn about ProjectManagementConvertOptions class for Project Management file formats (MPP, MPT, MPX, XER) in GroupDocs.Conversion for .NET."
77
keywords: Convert to Project, Convert to MPP, Convert to MPX, Microsoft Project conversion, Primavera conversion
88
productName: GroupDocs.Conversion for .NET
99
hideChildren: False
1010
toc: True
1111
---
1212

13-
GroupDocs.Conversion provides the [ProjectManagementConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/projectmanagementconvertoptions) class to control conversion to project management file formats.
13+
GroupDocs.Conversion provides the [ProjectManagementConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/projectmanagementconvertoptions) class to specify Project Management file format conversion settings.
1414

1515
## Supported Project Management Formats
1616

@@ -27,81 +27,66 @@ The following project management formats are supported:
2727

2828
**[Format](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/convertoptions-1/format/)** - Specifies the desired project management file format. Available options are: *Mpp, Mpt, Mpx, Xer*.
2929

30-
## Converting FROM Project Management Formats
30+
## Conversion Examples
3131

32-
You can convert project management files to other formats like PDF. This is useful for sharing project schedules with stakeholders.
32+
ProjectManagementConvertOptions supports conversion between project management formats. The following examples demonstrate common conversions.
3333

34-
### Convert MPX to PDF
34+
### MPP to MPX
3535

36-
```csharp
37-
using GroupDocs.Conversion;
38-
using GroupDocs.Conversion.Options.Convert;
39-
40-
// Load the source MPX file
41-
using (Converter converter = new Converter("project-schedule.mpx"))
42-
{
43-
// Set PDF convert options
44-
PdfConvertOptions options = new PdfConvertOptions();
45-
46-
// Convert and save
47-
converter.Convert("project-schedule.pdf", options);
48-
}
49-
```
50-
51-
### Convert MPP to PDF
36+
Convert a Microsoft Project binary file (MPP) to MPX (Project Exchange Format):
5237

5338
```csharp
5439
using GroupDocs.Conversion;
5540
using GroupDocs.Conversion.Options.Convert;
41+
using GroupDocs.Conversion.FileTypes;
5642

57-
// Load the source MPP file
58-
using (Converter converter = new Converter("construction-plan.mpp"))
59-
{
60-
// Set PDF convert options
61-
PdfConvertOptions options = new PdfConvertOptions();
43+
string sourceFile = "construction-plan.mpp";
44+
string outputFile = "construction-plan.mpx";
6245

63-
// Convert and save
64-
converter.Convert("construction-plan.pdf", options);
46+
using (var converter = new Converter(sourceFile))
47+
{
48+
var options = new ProjectManagementConvertOptions
49+
{
50+
Format = ProjectManagementFileType.Mpx
51+
};
52+
converter.Convert(outputFile, options);
6553
}
6654
```
6755

68-
### Convert XER (Primavera) to PDF
56+
### XER (Primavera) to MPX
57+
58+
Convert a Primavera P6 file (XER) to Microsoft Project Exchange format (MPX):
6959

7060
```csharp
7161
using GroupDocs.Conversion;
7262
using GroupDocs.Conversion.Options.Convert;
63+
using GroupDocs.Conversion.FileTypes;
7364

74-
// Load the source Primavera XER file
75-
using (Converter converter = new Converter("engineering-project.xer"))
76-
{
77-
// Set PDF convert options
78-
PdfConvertOptions options = new PdfConvertOptions();
65+
string sourceFile = "engineering-project.xer";
66+
string outputFile = "engineering-project.mpx";
7967

80-
// Convert and save
81-
converter.Convert("engineering-project.pdf", options);
68+
using (var converter = new Converter(sourceFile))
69+
{
70+
var options = new ProjectManagementConvertOptions
71+
{
72+
Format = ProjectManagementFileType.Mpx
73+
};
74+
converter.Convert(outputFile, options);
8275
}
8376
```
8477

85-
## ProjectManagementConvertOptions Usage
86-
87-
The ProjectManagementConvertOptions class is used to specify the target project management format when converting TO project formats.
78+
## Format Support Notes
8879

89-
```csharp
90-
using GroupDocs.Conversion.Options.Convert;
91-
using GroupDocs.Conversion.FileTypes;
92-
93-
// Specify target format for project management conversion
94-
ProjectManagementConvertOptions options = new ProjectManagementConvertOptions
95-
{
96-
Format = ProjectManagementFileType.Mpx
97-
};
98-
```
80+
Project Management to Project Management conversions are supported for select format combinations:
81+
- MPP → MPX, XER
82+
- MPT → MPX, XER
83+
- MPX → MPP, XER (some restrictions apply)
84+
- XER → MPX, MPP
9985

100-
**Note:** Conversion from standard document formats (PDF, Word, Excel) to project management formats is not supported. Project management formats require specific data structures for tasks, resources, dependencies, and timelines that are not present in general documents.
86+
**Note:** To convert FROM Project Management formats to PDF or images, use [PdfConvertOptions]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-pdf-with-advanced-options.md" >}}) or [ImageConvertOptions]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-image-with-advanced-options.md" >}}).
10187

10288
## More Resources
10389

10490
- [API Reference: ProjectManagementConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/projectmanagementconvertoptions)
10591
- [API Reference: ProjectManagementFileType](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.filetypes/projectmanagementfiletype)
10692
- [Supported File Formats]({{< ref "conversion/net/getting-started/supported-document-formats.md" >}})
107-
- [Common Conversion Options]({{< ref "conversion/net/developer-guide/advanced-usage/converting/common-conversion-options/_index.md" >}})

0 commit comments

Comments
 (0)