Skip to content

Commit e554048

Browse files
Updated currency examples
1 parent 5504667 commit e554048

File tree

4 files changed

+131
-132
lines changed

4 files changed

+131
-132
lines changed

content/english/java/currency/_index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ url: /java/currency/
1010

1111
## Currency Tutorials
1212
### [Manage Currency Codes in Aspose.Tasks](./currency-codes/)
13+
Learn how to manage currency MS Project codes efficiently using Aspose.Tasks for Java. Streamline your project management tasks effortlessly.
1314
### [Handle Currency Digits with Aspose.Tasks](./currency-digits/)
14-
### [Currency Symbols Manipulation in Aspose.Tasks](./currency-symbols/)
15+
Learn how to handle currency MS Project digits efficiently using Aspose.Tasks for Java. Step-by-step guide with code examples.
16+
### [Currency Symbols Manipulation in Aspose.Tasks](./currency-symbols/)
17+
Learn to manipulate currency symbols in MS Project files using Aspose.Tasks for Java. Easy steps for efficient project management.

content/english/java/currency/currency-codes/_index.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,54 @@
22
title: Manage Currency Codes in Aspose.Tasks
33
linktitle: Manage Currency Codes in Aspose.Tasks
44
second_title: Aspose.Tasks Java API
5-
description:
5+
description: Learn how to manage currency MS Project codes efficiently using Aspose.Tasks for Java. Streamline your project management tasks effortlessly.
66
type: docs
77
weight: 10
88
url: /java/currency/currency-codes/
99
---
10-
11-
## Complete Source Code
10+
## Introduction
11+
Welcome to our tutorial on managing currency MS Project codes using Aspose.Tasks for Java. In this tutorial, we'll walk you through the process of handling currency codes in your MS Project files with ease. Aspose.Tasks is a powerful Java API that allows you to manipulate Microsoft Project documents programmatically, offering a wide range of functionalities to streamline your project management tasks.
12+
## Prerequisites
13+
Before we dive into the tutorial, make sure you have the following prerequisites:
14+
### Java Development Kit (JDK) Installed
15+
Ensure you have JDK installed on your system. You can download and install the latest JDK version from [here](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html).
16+
### Aspose.Tasks for Java Library
17+
Download and set up the Aspose.Tasks for Java library. You can find the download link and detailed documentation [here](https://reference.aspose.com/tasks/java/).
18+
19+
## Import Packages
20+
To get started, let's import the necessary packages in your Java project:
1221
```java
13-
/*
14-
* Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
15-
*
16-
* This file is part of Aspose.Tasks. The source code in this file
17-
* is only intended as a supplement to the documentation, and is provided
18-
* "as is", without warranty of any kind, either expressed or implied.
19-
*/
20-
21-
22-
2322
import com.aspose.tasks.Prj;
2423
import com.aspose.tasks.Project;
24+
```
2525

26-
27-
public class CurrencyCodes {
28-
public static void main(String[] args) {
29-
settingCurrency();
30-
31-
gettingCurrencyCode();
32-
33-
//Display result of conversion.
34-
System.out.println("Process completed Successfully");
35-
}
36-
37-
public static void settingCurrency() {
38-
Project prj = new Project();
39-
prj.set(Prj.CURRENCY_CODE, "USD");
40-
}
41-
42-
public static void gettingCurrencyCode() {
43-
// The path to the documents directory.
44-
String dataDir = "Your Data Directory";
45-
46-
Project prj = new Project(dataDir + "project.mpp");
47-
System.out.println(prj.get(Prj.CURRENCY_CODE));
48-
}
49-
}
50-
51-
52-
53-
54-
26+
## Step 1: Set Up Data Directory
27+
Define the path to your data directory where your project file is located.
28+
```java
29+
String dataDir = "Your Data Directory";
30+
```
31+
## Step 2: Load the Project File
32+
Load the MS Project file using Aspose.Tasks.
33+
```java
34+
Project prj = new Project(dataDir + "project.mpp");
35+
```
36+
## Step 3: Retrieve Currency Code
37+
Fetch the currency code from the project.
38+
```java
39+
System.out.println(prj.get(Prj.CURRENCY_CODE));
5540
```
41+
By following these steps, you can easily manage currency MS Project codes using Aspose.Tasks for Java.
42+
43+
## Conclusion
44+
In conclusion, managing currency MS Project codes becomes seamless with Aspose.Tasks for Java. This tutorial has provided you with a comprehensive guide on handling currency codes within your MS Project files programmatically. With Aspose.Tasks, you can efficiently manipulate project documents to meet your specific requirements, enhancing your project management workflows.
45+
## FAQ's
46+
### Q: Can Aspose.Tasks handle complex project structures?
47+
A: Aspose.Tasks offers robust capabilities to handle complex project structures efficiently, allowing you to manage various aspects of your projects seamlessly.
48+
### Q: Is Aspose.Tasks compatible with different versions of MS Project files?
49+
A: Yes, Aspose.Tasks supports a wide range of MS Project file formats, ensuring compatibility across different versions of Microsoft Project.
50+
### Q: Does Aspose.Tasks provide documentation and support?
51+
A: Yes, Aspose.Tasks offers comprehensive documentation and dedicated support to assist users in utilizing the API effectively for their project management needs.
52+
### Q: Can I try Aspose.Tasks before purchasing?
53+
A: Yes, you can explore Aspose.Tasks through a free trial to evaluate its features and suitability for your project requirements.
54+
### Q: Where can I get temporary licenses for Aspose.Tasks?
55+
A: Temporary licenses for Aspose.Tasks can be obtained from the [website](https://purchase.aspose.com/temporary-license/) for a limited duration.

content/english/java/currency/currency-digits/_index.md

Lines changed: 43 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,57 @@
22
title: Handle Currency Digits with Aspose.Tasks
33
linktitle: Handle Currency Digits with Aspose.Tasks
44
second_title: Aspose.Tasks Java API
5-
description:
5+
description: Learn how to handle currency MS Project digits efficiently using Aspose.Tasks for Java. Step-by-step guide with code examples.
66
type: docs
77
weight: 11
88
url: /java/currency/currency-digits/
99
---
10-
11-
## Complete Source Code
10+
## Introduction
11+
Welcome to our comprehensive tutorial on handling currency MS Project digits using Aspose.Tasks for Java. In this tutorial, we will guide you through the process step by step, ensuring you grasp each concept thoroughly.
12+
## Prerequisites
13+
Before diving into this tutorial, ensure you have the following prerequisites:
14+
1. Java Development Environment: Make sure you have Java Development Kit (JDK) installed on your system.
15+
2. Aspose.Tasks Library: Download and install the Aspose.Tasks for Java library. You can obtain it from [here](https://releases.aspose.com/tasks/java/).
16+
3. Basic Knowledge of Java: Familiarize yourself with Java programming language basics.
17+
18+
## Import Packages
19+
Before we begin coding, let's import the necessary packages:
1220
```java
13-
/*
14-
* Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
15-
*
16-
* This file is part of Aspose.Tasks. The source code in this file
17-
* is only intended as a supplement to the documentation, and is provided
18-
* "as is", without warranty of any kind, either expressed or implied.
19-
*/
20-
21-
22-
2321
import java.io.IOException;
24-
2522
import com.aspose.tasks.Prj;
2623
import com.aspose.tasks.Project;
2724
import com.aspose.tasks.SaveFileFormat;
25+
```
2826

29-
30-
public class CurrencyDigits {
31-
public static void main(String[] args) {
32-
settingCurrencyDigits();
33-
34-
gettingCurrencyDigits();
35-
36-
//Display result of conversion.
37-
System.out.println("Process completed Successfully");
38-
}
39-
40-
public static void settingCurrencyDigits() {
41-
// The path to the documents directory.
42-
String dataDir = "Your Data Directory";
43-
44-
Project project = new Project();
45-
project.set(Prj.CURRENCY_DIGITS, 2);
46-
project.save(dataDir + "ProjectCurrDigits.mpp", SaveFileFormat.Mpp);
47-
}
48-
49-
public static void gettingCurrencyDigits() {
50-
// The path to the documents directory.
51-
String dataDir = "Your Data Directory";
52-
53-
Project project = new Project(dataDir + "project.mpp");
54-
System.out.println(project.get(Prj.CURRENCY_DIGITS));
55-
}
56-
}
57-
58-
59-
60-
61-
27+
## Step 1: Define Data Directory
28+
First, you need to define the path to your data directory where the Project file is located.
29+
```java
30+
String dataDir = "Your Data Directory";
31+
```
32+
Replace `"Your Data Directory"` with the actual path to your data directory.
33+
## Step 2: Load Project File
34+
Next, load the Project file using Aspose.Tasks library.
35+
```java
36+
Project project = new Project(dataDir + "project.mpp");
37+
```
38+
Ensure that `"project.mpp"` matches the name of your Project file.
39+
## Step 3: Retrieve Currency Digits
40+
Now, let's retrieve the currency digits from the Project file.
41+
```java
42+
System.out.println(project.get(Prj.CURRENCY_DIGITS));
6243
```
44+
This line will print the currency digits to the console.
45+
46+
## Conclusion
47+
In conclusion, handling currency MS Project digits with Aspose.Tasks for Java is straightforward with the right approach. By following this tutorial, you've learned how to retrieve currency digits from a Project file efficiently.
48+
## FAQ's
49+
### Can Aspose.Tasks handle other Project attributes besides currency digits?
50+
Yes, Aspose.Tasks offers a wide range of functionalities to manipulate various aspects of Project files.
51+
### Is Aspose.Tasks suitable for enterprise-level applications?
52+
Absolutely, Aspose.Tasks is designed to meet the demands of enterprise-grade projects.
53+
### Does Aspose.Tasks support cross-platform development?
54+
Yes, you can use Aspose.Tasks for Java on different platforms that support Java development.
55+
### Can I try Aspose.Tasks before purchasing?
56+
Yes, you can download a free trial version from [here](https://releases.aspose.com/).
57+
### Where can I get support for Aspose.Tasks?
58+
You can find support on the [Aspose.Tasks forum](https://forum.aspose.com/c/tasks/15).

content/english/java/currency/currency-symbols/_index.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,54 @@
22
title: Currency Symbols Manipulation in Aspose.Tasks
33
linktitle: Currency Symbols Manipulation in Aspose.Tasks
44
second_title: Aspose.Tasks Java API
5-
description:
5+
description: Learn to manipulate currency symbols in MS Project files using Aspose.Tasks for Java. Easy steps for efficient project management.
66
type: docs
77
weight: 12
88
url: /java/currency/currency-symbols/
99
---
10-
11-
## Complete Source Code
10+
## Introduction
11+
In this tutorial, we'll delve into the manipulation of currency symbols in MS Project files using the Aspose.Tasks library for Java. Aspose.Tasks provides powerful functionalities to work with Microsoft Project documents, enabling developers to efficiently handle various aspects of project management.
12+
## Prerequisites
13+
Before we begin, ensure you have the following prerequisites:
14+
1. Java Development Kit (JDK): Make sure you have Java installed on your system. You can download and install the latest version of JDK from the official Oracle website.
15+
2. Aspose.Tasks for Java: Download and install Aspose.Tasks for Java from the [download link](https://releases.aspose.com/tasks/java/). Follow the installation instructions provided in the documentation.
16+
17+
## Import Packages
18+
First, let's import the necessary packages to kickstart our manipulation of currency symbols in MS Project files.
1219
```java
13-
/*
14-
* Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
15-
*
16-
* This file is part of Aspose.Tasks. The source code in this file
17-
* is only intended as a supplement to the documentation, and is provided
18-
* "as is", without warranty of any kind, either expressed or implied.
19-
*/
20-
21-
22-
2320
import com.aspose.tasks.Prj;
2421
import com.aspose.tasks.Project;
22+
```
2523

26-
27-
public class CurrencySymbols {
28-
public static void main(String[] args) {
29-
settingCurrencySymbol();
30-
31-
gettingCurrencySymbol();
32-
33-
//Display result of conversion.
34-
System.out.println("Process completed Successfully");
35-
}
36-
37-
public static void settingCurrencySymbol() {
38-
Project project = new Project();
39-
project.set(Prj.CURRENCY_SYMBOL, "$$");
40-
}
41-
42-
public static void gettingCurrencySymbol() {
43-
// The path to the documents directory.
44-
String dataDir = "Your Data Directory";
45-
46-
Project project = new Project(dataDir + "project.mpp");
47-
System.out.println(project.get(Prj.CURRENCY_SYMBOL));
48-
}
49-
}
50-
51-
52-
53-
54-
24+
## Step 1: Define Data Directory
25+
Set the path to your data directory where your MS Project file is located.
26+
```java
27+
String dataDir = "Your Data Directory";
28+
```
29+
Replace `"Your Data Directory"` with the actual path to your data directory.
30+
## Step 2: Load MS Project File
31+
Load the MS Project file into a `Project` object using Aspose.Tasks.
32+
```java
33+
Project project = new Project(dataDir + "project.mpp");
34+
```
35+
Replace `"project.mpp"` with the name of your MS Project file.
36+
## Step 3: Retrieve Currency Symbol
37+
Extract the currency symbol from the loaded project file.
38+
```java
39+
System.out.println(project.get(Prj.CURRENCY_SYMBOL));
5540
```
41+
This code retrieves the currency symbol and prints it to the console.
42+
43+
## Conclusion
44+
In conclusion, manipulating currency symbols in MS Project files using Aspose.Tasks for Java is a straightforward process. By following the steps outlined in this tutorial, developers can seamlessly integrate this functionality into their Java applications, enhancing their project management capabilities.
45+
## FAQ's
46+
### Q: Can I manipulate other project attributes besides currency symbols using Aspose.Tasks?
47+
Yes, Aspose.Tasks provides extensive functionalities to manipulate various project attributes such as task information, resource assignments, and more.
48+
### Q: Is Aspose.Tasks compatible with different versions of MS Project files?
49+
Aspose.Tasks supports a wide range of MS Project file formats, including MPP, MPT, and XML formats, ensuring compatibility across different versions.
50+
### Q: Does Aspose.Tasks offer documentation and support for developers?
51+
Yes, developers can access comprehensive documentation and dedicated support forums on the Aspose.Tasks website to assist them in their development tasks.
52+
### Q: Can I try Aspose.Tasks before purchasing it?
53+
Absolutely, developers can avail of a free trial of Aspose.Tasks from the [website](https://purchase.aspose.com/buy) to evaluate its features and functionalities before making a purchase decision.
54+
### Q: How can I obtain a temporary license for Aspose.Tasks?
55+
Developers can acquire a temporary license for Aspose.Tasks from the [website](https://purchase.aspose.com/temporary-license/) purchase page, allowing them to explore the full capabilities of the library during the evaluation period.

0 commit comments

Comments
 (0)