Managing Project Currency Codes

Overview

In Microsoft Project, the currency code determines how monetary values are displayed in a project (e.g., USD for US dollars, EUR for euros).
It follows the ISO 4217 standard — a three-letter code for each currency.

This is especially important when:

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 check the currency code of a project in Microsoft Project:

  1. On the Tools menu, select Options.
  2. Go to the View tab.
  3. The currency code is shown in the Currency section.

Currency codes in Microsoft Project

edit currency codes in Microsoft Project Figure: Viewing and editing currency codes in Microsoft Project.

Working with Currency Codes in Aspose.Tasks

The CurrencyCode property of the Project class is used to get or set the project’s three-letter currency code.

Setting a Currency Code

The following example shows how to set these properties.

1// Create new project and set currency code
2Project project = new Project();
3project.Set(Prj.CurrencyCode, "USD");

Key points:

Getting Currency Code using Aspose.Tasks

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

1Project project = new Project("New Project.mpp");
2Console.WriteLine(project.Get(Prj.CurrencyCode));

Best Practices

FAQ

Q: What happens if I set an invalid currency code?
A: MS Project may fall back to its default currency or ignore the change.

Q: Will changing the currency code update all project values?
A: No. It changes only how the currency is displayed, not the numerical values.

Summary

Managing currency codes in Aspose.Tasks for .NET is straightforward:

By leveraging this feature, you can ensure that your projects remain consistent and ready for international collaboration.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.