Read-Write and update .MPP file

Hi there,

Is Aspose.task tool can Read , write and update in .MPP file ?

Waiting for your reply


This message was posted using Page2Forum from Our Blog - Aspose.Tasks for .NET

Dear TulsiV,

Thanks for considering Aspose.Tasks.

Aspose.Tasks can read MPX/MPP files, but can only write them back in MPX or in XML format.

Hi Faiz,

Thanks for quick reply.

Further I hav question if I made changes like add task in .mpx file and save, that .mpx file can not be load in Ms project so for that how i reflect same changes in .mpp file and keep data changes as .mpx file hav

eagrly waiting for your reply

Thanks & Reagrds

Tulsi V. Chauhan
IEC – Software Engineer.
Lear Automotive India Pvt Ltd.
Phone: (91-22) 25867151
Fax: (91-22) 25867080
E-mail: tchauhan@lear.com

If you are opening the generated mpx file in MS-Project 2007 or other versions, then please change the Legacy Formats option in Tools – > Options – > Security tab to Allow loading files with legacy or non default file formats.

Hello Faiz,
I do not have "Allow Legacy Formats..." on my security tab. I have Privacy
Options and Macro Security. and I am using service pack 2 for Ms Project 2003
Please do needful
Thanks

What error are you getting?

Save your mpx file in this way.

FileStream fileStream = new FileStream(filename, FileMode.OpenOrCreate, FileAccess.Write);

//file.Write(fileStream, Encoding.GetEncoding(1252));
file.Write(fileStream, Encoding.Default);
fileStream.Close();