Hi,
We try to convert MPX 4.0 files saved with non-English locale (German) to PDF.
We open the MPX file with Aspose and we try to save the file as PDF with the following save options:
var saveOptions = new PdfSaveOptions
{
PresentationFormat = PresentationFormat.GanttChart,
Compliance = PdfCompliance.PdfA1b,
LegendOnEachPage = false
};
We get the following exception:
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value
at System.DateTime.AddTicks(Int64 value)
at System.DateTime.Add(Double value, Int32 scale)
at .()
at . ?? (Boolean )
at . ?? (Boolean )
at …?? [T1]( , Boolean )
at . ?? (Boolean )
at . ?? ()
at . ?? ()
at ? .(Stream , SaveOptions )
at Aspose.Tasks.Project.Save(String filename, SaveOptions options)
The current culture is set also to German during execution.
The issue can be simply reproduced with an “empty” project file(see attached file):
- change the windows system language to German
- create an empty project with MS Project 4.1 on Windows XP
- save the “empty” file as MPX 4.0
Do you support MPX files saved with non-English locale settings?
Thanks,
Patrik V.
EmptyGerman4.0.zip (845 Bytes)