Free Support Forum -

Microsoft Project Database: trying to get single project data: failed

How can I get single project from Microsoft Project Database. Solution you have written on website is not working, maybe I dont know how to use it.
try {
MPDDatabase mpd;
// Open Microsoft Project database
mpd = new MPDDatabase(“Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Airkk.mpd”);
if (mpd != null)
System.Collections.IEnumerator iter = mpd.GetEnumerator();
MPDPrj mp = mpd.ReadMPDProject((MPDPrjInfo)(iter.Current));
//operations on projects
catch (Aspose.Tasks.TasksException ex)

This message was posted using Page2Forum from MPDDatabase.ReadMPDProject Method - Aspose.Tasks for .NET

Dear klerka,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for considering Aspose.Tasks

I will look into it and let you know as soon as possible.

Please run the code sample namely Database which you can found in Featured Demos folder after installing Aspose.Task with installer. You will also find there sample.mdb file, the same code runs fine and writes out the project files from this database.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />