Managing Project Currency Codes
Contents
[
Hide
Show
]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:
- On the Tools menu, select Options.
- Select the View tab
Currency codes in Microsoft Project
Setting Currency using Aspose.Tasks
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");
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));