Converting mpp data from published database to mpp project file

P

Popskie

Hi,

Is there a way to convert back to mpp project file from mpp data from
published database programmatically? Im using C# here. Thanks!
 
P

Popskie

Hi,

Thanks for the reply it getting closer to my requirements. Can I do it
programmatically using C#. I've download the code from internet but when I
build it throws an error sayin Project cannot open file.

pro objMPPApplication = new pro();
try
{
//mppname is the name of the project published on the project server.

string strMPPPathName =
@"http://pompom.com/projectserver\mppname";


object oMissing = System.Reflection.Missing.Value;
object oFile = strMPPPathName;


objMPPApplication.FileOpen(oFile, oMissing, oMissing,
oMissing, oMissing, oMissing, oMissing,
"domain account", "domain password", oMissing, oMissing,
Microsoft.Office.Interop.MSProject.PjPoolOpen.pjPoolReadOnly, oMissing,
oMissing, oMissing, oMissing);
objMPPApplication.Application.SelectAll();
}
catch (Exception ex)
{
objMPPApplication.Quit;
MessageBox.Show(ex.Message);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top