HI,
I have the requirement to allow the users to upload mpp file in my web application and my application should be able to read the mpp file (without saving the file physically on the server) and then application should also be able read content from database and generate a mpp file and allow user to save the file on their local machine, again without saving the file physically on the server). I am building my application using .Net 4.5, MVC 5.0. Can ASPOSE help me in reading and writing in mpp file in a stream?
Hi Vikas,
Thank you for writing to Aspose support team.
You may please use following code to read the project from stream.
Project projFromStr = new Project(stream);
Once the project is read, you may use database calls to create or update it. Following code can be used to write the project to a stream.
MemoryStream stream = new MemoryStream();
//Write project to stream
proj.Save(stream, SaveFileFormat.MPP);
Should you have any other query in this regard, please feel free to write us back.
Hi,
Hi Vikas,
Hi,
Thanks for the response. Can you please also confirm that whether ASPOSE for task uses Microsoft interop assembly or not for reading / writing in mpp.
The reason I am asking is that in my company, it is not allowed to install interop assemblies on the server.
Also I was trying to create a POCs using sample for saving in stream, but I got the exception that
project.Save(stream, SaveFileFormat.MPP); is not allowed in evaluation copy.
It is important for me to test this feature as well as get clarification on interop assembly before I can make any decision
Vikas
Hi Vikas,
Thanks.
I was trying to create a POCs using example sample for saving mpp in stream, but I got the exception that
project.Save(stream, SaveFileFormat.MPP); is not allowed in evaluation copy.
It is important for me to test this feature. Can you please suggest how can I test it.
Hi Vikas,
Thanks. I was able to test the sample and it seems to be working fine. I would like to know some performance numbers / performance rating as well in case my application is being used by 10 concurrent users for mpp upload / download and mpp has varying number of task ranging from 1000 task till 20,000.
Hi Vikas,