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?


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

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.

Thank you very much. I thought already that it might be a “small” bug.