How to Lock MS Project Using C++

In order to lock MS Project File, we’ll use

Aspose.Tasks for C++

API which is a feature-rich, powerful and easy to use document lock MS Project API for C++ platform. You can download its latest version directly, just open

NuGet

package manager, search for Aspose.Tasks.Cpp and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.Tasks

Steps to Lock MS Project of MPP via C++

  • Upload MPP file using Project Class
  • Enter password details
  • The server processes the file and resets the password properties of the MPP file
  • Resave the project with the password
  • Send MPP file to the user

System Requirements

Aspose.Tasks for C++ supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with C++ Runtime Environment for Windows 32 bit, Windows 64 bit and Linux 64 bit.
  • Aspose.Tasks for C++ DLL referenced in your project.
 

Lock the MPP files - C++

//Add Password Protection on C++ {need some code snippet}

// output_protected.mpp file is protected.
 
  • About Aspose.Tasks for C++ 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.

    Lock MS Project via Online App

    Lock MS Project to MPP documents by using our Live Demos with following benefits.

      No need to download or setup anything
      No need to write any code
      Just upload your MPP file & edit document properties
      Instantly get the download link for the resultant file

    MPP What is MPP File Format

    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.

    Other Supported Lock MS Project Tasks Files Formats

    Using C++, One can also manipulate MS Project Tasks Files of many other formats including.