Browse our Products

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-tasks</artifactId>
    <version>18.4</version>
    <classifier>jdk18</classifier>
</dependency>
copied!  
                                                
                                                  compile(group: 'com.aspose', name: 'aspose-tasks', version: '18.4', classifier: 'jdk18')
                                                
                                              
copied!  
<dependency org="com.aspose" name="aspose-tasks" rev="18.4">
    <artifact name="aspose-tasks" m:classifier="jdk18" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-tasks" % "18.4"
copied!  

Microsoft Project File Manipulation API

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Aspose.Tasks a Java Project Management API to manipulate Microsoft Project files. Developers can define a project’s main and default properties as well as calendar information. API also provides the ability to specify weekdays and calendar exceptions while making it easy to add & recalculate tasks, resources and other data without user intervention.

Microsoft Project File Processing

  • Read, change and write Microsoft Project® documents.
  • Read MPP and XML project formats.
  • Create, update and write projects in an XML project format.
  • Read MPP project files, update summary information and write in original MPP format.
  • Read MPP project files and convert them to XML format.
  • Change main project settings like schedule type, start and finish dates.
  • Change default project settings like default standard rate, default overtime rate, default task type, default fixed cost accrual, etc.
  • Manage extended attributes.
  • Define weekdays for the project as well as for calendars and calendar exceptions.
  • Read and write calendars for tasks and resources.
  • Manage task baseline scheduling & duration.
  • Handle constraints on tasks.
  • Create and manage links between tasks.
  • Read, change and create tasks, milestone, estimated critical or effort driven tasks.
  • Manage resources costs and variances.
  • Access assignment costs and budget.
  • Resource prefix implementation for nested resources

Read & Write Project Formats

MPP, XML, MPT, MPX

Save Project Files As

XLSX, HTML, TXT, PDF, XER, PrimaveraP6XML
TIF, SVG, PNG, JPEG

Supported Environments

  • Microsoft Windows: Windows Desktop & Server (x86, x64)
  • macOS: Mac OS X
  • Linux: Ubuntu, OpenSUSE, CentOS, and others
  • Java Versions: J2SE 7.0 (1.7) or above

Get Started

Aspose.Tasks Java APIs are hosted at the Aspose Repository. You can easily use Aspose.Tasks for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.Tasks for Java from Maven Repository documentation page.

Read Project Data from Microsoft Project Database

String url = "jdbc:sqlserver://";
String serverName = "192.168.56.2\\MSSQLSERVER";
String portNumber = "1433";
String databaseName = "ProjectServer_Published";
String userName = "sa";
String password = "***";
MspDbSettings settings = new MspDbSettings(url+serverName+":"+portNumber+";databaseName="+databaseName+
         ";user=" + userName + ";password=" + password, UUID.fromString("E6426C44-D6CB-4B9C-AF16-48910ACE0F54"));
 
addJDBCDriver(new File("sqljdbc4.jar"));
 
Project project = new Project(settings);
project.save(dir + "output.xml", SaveFileFormat.XML);

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

VersionRelease Date
24.9September 30, 2024
24.8August 27, 2024
24.7July 29, 2024
24.6June 28, 2024
24.5May 23, 2024
24.4April 17, 2024
24.3March 26, 2024
24.2February 28, 2024
24.1January 30, 2024
23.12December 21, 2023
23.11November 21, 2023
23.10October 19, 2023
23.9September 21, 2023
23.8August 25, 2023
23.7July 21, 2023
23.6June 23, 2023
23.5May 19, 2023
23.4April 19, 2023
23.3March 15, 2023
23.2February 10, 2023
23.1January 21, 2023
22.12December 19, 2022
22.11November 18, 2022
22.10October 7, 2022
22.9September 12, 2022
22.8August 16, 2022
22.7July 14, 2022
22.6June 21, 2022
22.5May 25, 2022
22.4April 25, 2022
22.3March 23, 2022
22.2February 22, 2022
22.1January 26, 2022
21.12December 14, 2021
21.11November 17, 2021
21.10October 25, 2021
21.9September 14, 2021
21.8August 13, 2021
21.7July 10, 2021
21.6June 15, 2021
21.5May 12, 2021
21.4April 7, 2021
21.3March 16, 2021
21.2February 18, 2021
20.12December 30, 2020
20.11November 24, 2020
20.10October 16, 2020
20.8September 10, 2020
20.7July 8, 2020
20.6June 16, 2020
20.4April 22, 2020
20.2February 25, 2020
20.1January 31, 2020
19.12December 25, 2019
19.10November 8, 2019
19.9September 27, 2019
19.7August 13, 2019
19.6July 11, 2019
19.5June 3, 2019
19.4April 8, 2019
19.3March 18, 2019
18.11November 28, 2018
18.10October 31, 2018
18.8September 28, 2018
18.7July 30, 2018
18.6June 29, 2018
18.5May 31, 2018
18.4May 3, 2018
18.3March 29, 2018
17.11January 28, 2018
17.8November 13, 2017
17.5July 22, 2017
17.3.0May 16, 2017
17.1.0February 22, 2017
16.11.0December 11, 2016
9.6.0October 26, 2016
9.5.0August 21, 2016
9.4.0June 17, 2016
9.3.0March 18, 2016
9.2.0January 29, 2016
9.1.0December 30, 2015

 
 English