Hi,
Basically I would like to keep the same format as input file if possible …
Hi Rajiv,
private static Project prj = new Project(“D:/Aspose/output.mpp”);
public static void TestTaskDateFields()
{
SaveOptions options = new PdfSaveOptions();
options.setTimescale(Timescale.Months);
options.setView(ProjectView.getDefaultGanttChartView());
options.getView().getColumns().remove(4);
//options.getView().getColumns().remove(2);
options.getView().getColumns().add(new GanttChartColumn(“Finish”, 100, new TaskToColumnTextConverter() {
@Override
public String invoke(Task task)
{
return task.getFinish().toString();
}
}));
//options.View.Columns.Add(new GanttChartColumn(“Predecessors”, 100, new TaskToColumnTextConverter(TaskPredecessors)));
prj.save(“D:/Aspose/result GanttChart_Date_Java.pdf”, options);
}
Hi Kashif,
Sorry for coming back on this after a long time …
Hi Rajiv,
Hi Kashif,
Ya it is about year format only, nothing else as far as the column is concerned …
Just came across another sample wherein the format is completely changed, not just the year.
Hi Rajiv,
Hi Kashif,
Hi Rajiv,
This task depends on MSProject.DateFormat property, which is not stored in mpp, but in MSProject application and
applies to any mpp file. Our development team is looking into this issue. I have further increased the priority of this issue to Enterprise level and you can track the status of this issue from EMC thread here.
The issues you have found earlier (filed as TASKS-33755) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Rajiv,
The format of Date property is not stored in the MPP file but in MS Project application which then applies to all the MPP files. In order to get the date in specific output format, you may please use the Project’s DateFormat property as shown here. Please let us know if we can be of any additional help to you in this regard.
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.