Sign In  Sign Up Live-Chat

How to read Currency settings?

Last post 06-18-2008, 1:47 PM by MarLicht. 3 replies.
Sort Posts: Previous Next
  •  06-17-2008, 8:37 AM 131635

    How to read Currency settings?

    I tried to read the currency settings from a MPP file. It seems that the currency settings are not supported for import. However the CurrencySettings class is available in Aspose.Tasks.

    Is it possible to read the currency settings from a MS-Project file?


     
  •  06-18-2008, 6:40 AM 131841 in reply to 131635

    Re: How to read Currency settings?

    Dear MarLicht,

    Thanks for considering Aspose.Tasks.

    One way is to write it in XML and then read the CurrencySettings from there.

    Following is a way to write MPP file to XML, note you can write it in memory stream and parse it from there.

    I will let you know after consulting with technical team, if there is a better or easy way.

    C#

    MPPFile file=new MPPFile(sourceFile);

    MemoryStream ms=new MemoryStream();

    file.WriteXML(ms);

    file.WriteXML("c:\\out.xml"); //or onto disk


    Many Thanks and Kind Regards,

    Shakeel Faiz
    Support Engineer
    Aspose Tyumen Team
     
  •  06-18-2008, 7:24 AM 131854 in reply to 131635

    Re: How to read Currency settings?

    Hello MarLicht,

    Aspose.Tasks read currency setting from projects but property is not public.
    Most probably by mistake. We will make it public in the next hot fix.

    Alexey Zhilin
    Team Leader
    Aspose Tyumen Team
    About Us
    Contact Us
     
  •  06-18-2008, 1:47 PM 131967 in reply to 131635

    Re: How to read Currency settings?

    Thank you very much. I thought already that it might be a "small" bug.
     
View as RSS news feed in XML