Questions tagged [mpxj]

MPXJ is a library that provides a set of facilities to allow project information to be manipulated in Java and .NET.

MPXJ is a library that provides a set of facilities to allow project information to be manipulated in Java and .NET. MPXJ supports seven data formats, Microsoft Project Exchange (MPX), Microsoft Project (MPP, MPT), Microsoft Project Data Interchange (MSPDI XML), Microsoft Project Database (MPD), Planner (XML), and Primavera (XER and database).

102 questions
0
votes
1 answer

Converting MPP files to MS XML format in Python using MPXJ

I am trying to convert MPP file to MS XML format using MPXJ library and Jpype def convert(inputFile, outputFile): reader = ProjectReaderUtility.getProjectReader(inputFile) project = ProjectFile() project = reader.read(inputFile) writer =…
0
votes
1 answer

MPXJ: Export to Asta Powerproject

I can successfully import Asta Powerproject project files. Then I do some stuff with it. And finally I have to export the data again to Asta Powerproject. It seems like Asta Powerproject doesn't want to import neither MPX nor MSPDI files. Is there a…
0
votes
1 answer

MPXJ: How to get columns other than task and resource?

I'm trying to use MPXJ library to get fields from the MS Project mpp file. I managed to to get the task and resources. My file contains additional fields like start date, end date, comments etc. Can anyone help me to extract these fields?? Thanks in…
scari
  • 86
  • 2
  • 10
0
votes
2 answers

MPX File Is Not Being Imported In Primavera p6 Software

I convert primavera xer file in to mpx formate using MPXWriter class. File converted successfully into mpx format. But when i will try to import file in primavera p6 software its give error Import/Export Error: Cannot find a unique value for…
0
votes
2 answers

Any MPXJ in Java example?

I'm new to MPXJ would like to know more regarding MPXJ but I googled found lack of example or tutorial regarding it, any sample example regarding it? I will appreciate
Adam Yong
  • 59
  • 1
  • 5
0
votes
1 answer

Get Exception to read asta file (.pp) using mpxj

When I try to read asta(.pp) file using mpxj in java, then I am getting the error as shown below (even though, I already added the below shown code): org.xerial sqlite-jdbc
0
votes
1 answer

Invalid outline number while reading tasks from Microsoft Project - After June Update of Microsoft Project?

we are using MPP14Reader to read tasks from Microsoft Project, and recently for some of the projects, we are seeing that getOutlineNumber is giving wrong value. (ex: in Microsoft Project OutlineNumber is 1.2 , where as task.getOutlineNumber() is…
Akhilesh
  • 67
  • 1
  • 1
  • 5
0
votes
1 answer

MPXJ C# MSPID: Mark task as done (100% complete)

We're using the C# version of MPXJ, but rather than examining an existing Project file we're using it to produce a new file purely from code (extracting data from a third party system) for import to Project via MSPDIWriter. The goal is to have Tasks…
T2PS
  • 372
  • 1
  • 2
  • 12
0
votes
1 answer

How to know the exact MS Project version using MPXJ Library

I need to know the exact MS Project version of the file that is uploaded in my system. In the MPXJ library, the ProjectProperties class exposes two apis - getApplicationVersion() and getMppFileType() but they both return an Integer. Which number is…
Patruni Srikanth
  • 741
  • 1
  • 7
  • 14
0
votes
2 answers

ProjectFile.getDefaultCalendar is mismatch with ProjectProperties.getDefaultCalendarName

I am using MPXJ 7.8.1 to read MS Project File(.mpp). I changed the Project Calendar to "24 Hours" as following: ProjectProperties.getDefaultCalendarName returns the correct calendar name "24 Hours". But the ProjectFile.getDefaultCalendar returns…
Kenneth
  • 181
  • 3
  • 12
0
votes
1 answer

How to get the value of task's "Display on Timeline"?

I'm using MPXJ 7.8.1 to read the MS Project file(.mpp), but I can't find a API to get the value of the field "Display on Timeline" on Task info. Is there a way to get the value of this field?
Kenneth
  • 181
  • 3
  • 12
0
votes
1 answer

MPXJ C# - Resource assignment count

I have a XER file that I imported to my trial version of Primavera P6. Here is an screen shot of one of the activity's assigned resources: As you see I have 14 resources in Primavera but when I watch it in Visual Studio I have 13 resources: Well…
msd
  • 591
  • 7
  • 23
0
votes
1 answer

How to Run Progress Bar While Reading a MPP File?

I'm trying to have a progress bar running while reading a file. I'm not sure how to do this. Help is much appreciated. Code is below: UploadProgressBar.Visible = true; UploadProgressBar.Value = 0; CurrentFile = reader.read(CurrentFileName);…
0
votes
1 answer

MPXJ: Cant read field values when custom field headers are present in file

I'm using MPXJ to read Microsoft Project files (.mpp), but the current version of MPXJ (7.2.1) seems to refuse to read Lookup fields when I change a field to have a different name. For example, create a new project, show Text1, set it to Lookup, add…
W. Lund
  • 1
  • 1
0
votes
1 answer

How to read User Field Definitions with MPXJ

I'm using MPXJ to read projects from both Primavera and MSP and would like to read the user field definition information e.g. the field label / description, any ideas how this can be achieved ?