How to View MPP File Using C#
In order to view MPP file, we’ll use
API which is a feature-rich, powerful and easy to use API for C# platform to be used with any Viewer. Open
package manager, search for Aspose.Tasks and install. You may also use the following command from the Package Manager Console.
Package Manager Console Command
PM> Install-Package Aspose.Tasks
Steps to View MPP via C#
Aspose.Tasks makes it easy for the developers to view the MPP file with just few lines of code.
- Load MPP file with Project class
- Call the Project.Save method with HtmlSaveOptions as parameters
- Load resultant HTML in default browser with Process.Start
System Requirements
Aspose.Tasks for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.
- Microsoft Windows or a compatible OS with .NET Framework, Mono and COM Interop
- Development environment like Microsoft Visual Studio
- Aspose.Tasks for .NET referenced in your project
C# code to view MPP
// load MPP file in an instance of Project
var project = new Tasks.Project("template.mpp");
// create an instance of HtmlSaveOptions
var option = new Tasks.Saving.HtmlSaveOptions();
// convert MPP file to HTML format
project.Save(output, option);
// load resultant HTML in default browser
System.Diagnostics.Process.Start(output);
About Aspose.Tasks for .NET API
Aspose.Tasks is a Microsoft Project API to view and convert project documents. One can load, create, modify and render Microsoft Project files to Primavera, Excel, PDF, HTML, images and XML formats. Aspose.Tasks is a standalone API and does not require Microsoft Project or any other software to be installed.Free App to View MPP
MPP Mi a MPP fájlformátum
A file with MPP extension is Microsoft Project data file that stores information related to project management in an integrated manner. It is proprietary file format developed by Microsoft as file format for Microsoft Project (MSP) which is a project management application software. Besides MPP, MSP supports other file formats as well like project XML schema. Several APIs and applications provide the facility to convert MPP file format to others. Microsoft now has online Project Server where project management files can be uploaded for collaboration by multiple users.