Currency Codes

Managing Currency Codes

The CurrencyCode property exposed by the Project class is used to set or get the three-letter currency code for a project. This property supports the string data type.

To see a project’s currency code in Microsoft Project:

  1. On the Tools menu, select Options.
  2. Select the View tab

Currency codes in Microsoft Project

viewing currency codes

Setting Currency using Aspose.Tasks

The following code example demonstrates how to set these properties.

1// Create new project and set currency code
2System::SharedPtr<Project> project1 = System::MakeObject<Project>();
3project1->Set<System::String>(Prj::CurrencyCode(), u"USD");

Getting the Currency Code using Aspose.Tasks

These properties can be accessed using the project’s CurrencyCode property.

1System::SharedPtr<Project> project1 = System::MakeObject<Project>(dataDir + u"project.mpp");
2System::Console::WriteLine(project1->Get<System::String>(Prj::CurrencyCode()));
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.