Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Date = NA? in 2.1

Last post 08-06-2009, 7:47 AM by msabir. 5 replies.
Sort Posts: Previous Next
  •  06-02-2009, 8:18 AM 182186

    Date = NA? in 2.1 .NET

    Hi,

    When using automation to MS Project (possibly older versions), some dates that were not set to a value returned 'NA' as a null value. 

    in 2.1.0 what is the default date (or null) date for date fields?  or will all dates have a valid date?

    Regards,  Bruce

     
  •  06-02-2009, 10:48 PM 182280 in reply to 182186

    Re: Date = NA? in 2.1

    Hello Bruce,

    Aspose.Tasks returns DateTime.MinValue instead of null.

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  08-05-2009, 11:05 AM 192168 in reply to 182280

    Re: Date = NA? in 2.1

    Hello,

    how exactly is Aspose.Tasks supposed to produce usable files then? Why are the DateTime objects with DateTime.MinValue not ignored during the generation of the Project XML file?

    Opening a MPP file with Aspose.Tasks and producing an XML file with it should yield the same result as saving the project as XML from within MS Project. Don't you aggree? What I get now is a project that has several conflicts, wrongly calculated task durations, wrongly calculated completion percentages and several other deviations from the original.

    Do you plan to correct these issues?

    thanks and best regards,

    philippe der hovsepian

     
  •  08-05-2009, 11:59 AM 192177 in reply to 192168

    Re: Date = NA? in 2.1

    Hello Philippe,

    All DateTime objects with DateTime.MinValue and TimeSpan objects with TimeSpan.MinValue are filtered and not stored in an XML file. If you have such problem then please provide mpp and created xml files example and we will investigate it and fix issues shortly.

    Durations and percentages are not recalculated by Aspose.Tasks. It just read values from mpp file and write to xml "as is".

    Actually, we have many future plans about Aspose.Tasks. If you have requests for some new features or you don't like something then please post here in the forum.

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  08-06-2009, 5:19 AM 192311 in reply to 192177

    Re: Date = NA? in 2.1 .NET

    Attachment: Present (inaccessible)

    Hello Alexey,

    thanks for your fast reply. I'm sorry, I'm currently working with the demo version so the dates are set to 01.01.2000 instead of DateTime.MinValue and are therefore included in the xml. However my problems with percentages (resource allocation and task completion) still occur.

    Please have a look at the attached files (TestProject_MSP.xml produced in MS Project 2003 and TestProject.xml produced by loading the corresponding TestProject.mpp file and saving the project as xml, with manually removed elements containing 01.01.2000).

    As you can see, the allocated resource percentages went completely haywire.

    And the completed percentage for task 4 (and parent task 2) are different from the ones in the mpp file too (I've noticed that TimephasedData elements are missing in the partly completed tasks).

    And the tasks start at 9:00 AM instead of 8:00 AM (the standard calendar in the xml is one hour off in comparison to the one in the mpp file)

    thank you for your help and best regards, philippe

     
  •  08-06-2009, 7:47 AM 192332 in reply to 192311

    Re: Date = NA? in 2.1

    Hi philippe,

    We are analyzing the problem and working on it.

    Regards,

    Muhammad Sabir,
    Support Developer
    Aspose - The .NET and Java Component Publisher

    Muhammad Sabir
    Support Assistant Manager
    Aspose Sialkot Team
    http://www.aspose.com
    Aspose - Your File Format Experts

    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML