muhammad.waqas February 2, 20160 Comments

Support for Microsoft Access (MPD) Project Database available in Aspose.Tasks for Java 9.2.0

Support for Microsoft Access (MPD) Project Database available in Aspose.Tasks for Java 9.2.0

February 2, 2016
Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Tasks for Java 9.2.0 has been released. Ported from its equivalent .NET version, this month’s release inherits the same new features and enhancements along with the bug fixes. For a detailed list of what is new and fixed, please visit our product download page. You may also like to visit our documentation section, Aspose.Tasks for Java, for public API changes that are part of this month’s release.

New Features & Enhancements

Support for Microsoft Access (MPD) Project Database: This month’s release includes a new feature of importing project data from Microsoft Access database (MPD) file. The MPDSettings class provides the interface for parameters setup of connectivity to MPD file. The following sample code illustrates how to load project data from such database file.

MpdSettings settings = new MpdSettings(getConnectionString(), 1);
Project project = new Project(settings);

private String getConnectionString()
{
    return "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb, *.accdb);DBQ=" + "mpdFile.mpd";
}

Customizing Timescale Tier Labels: This month’s release also includes a new enhancement of customizing timescale tier labels according to local culture information. A new delegate method, setDateTimeConverter, has been introduced to achieve this as shown in the following code sample.

Project project = new Project("New Project 2007.mpp");

project.getTaskLinks().add(project.getRootTask().getChildren().add("Task 1"), project.getRootTask().getChildren().add("Task 2"));

GanttChartView view = (GanttChartView)project.getDefaultView();
view.getMiddleTimescaleTier().setUnit(TimescaleUnit.Months);
project.set(Prj.TIMESCALE_START, new Date(112, 7, 6));

view.getMiddleTimescaleTier().setDateTimeConverter( new DateTimeConverter() {
      	public String invoke(java.util.Date date)
        {
            return new String[] { "Янв.", "Фев.", "Мар.", "Апр.", "Май", "Июнь", "Июль", "Авг.", "Сен.", "Окт.", "Ноя.", "Дек." }[date.getMonth()];
        }
        });

project.save("saved.pdf", SaveFileFormat.PDF);

Bug Fixes

This month’s release also includes a number of bug fixes as part of the porting process from the equivalent .NET version. Details about these can be found in the product release notes of Aspose.Tasks for Java.

API Resources

  • Product Documentation – Provides complete information about system requirements, installation, Programmer’s Guide, Technical articles and API Changes
  • API Reference Guide – Provides information about the product namespaces, classes and methods
  • GitHub Examples – Ready to download and execute examples of the API
  • Forum Support – Post your queries/inquiries on Aspose.Tasks forum to get support from our technical support team.

Leave a comment

Posted inAspose.Tasks Product Family
 

Related Articles