Problem - Please Help Me

  • Thread starter Jonathan Falconnier
  • Start date
J

Jonathan Falconnier

I am developing a web application that will get various data from other parts
of the application of build a project file which the user can then download.
I am using the 2007 Interop, and because when I save the file out as a 2007
mpp, the rollup bars sometimes extend way too far out as if the hierachy is
not accurate underneath it (in some places but not others), event though it's
obviously entered correctly cuz the indents are correct along with the auto
generated WBS codes........so here's the creap part.........I had to save
this messed up generated file down to version 2003 format (which is another
thing I can't figure out how to do with the 2007 interop) to send it to
someone and what do you know, the rollup bar problem went away! Everything
displayed fine once in 2003 format. Is that a bug or what? If you can't
answer that question, just tell me how to generate a 2003 file from the 2007
interop. THANKS!
 
J

Jonathan Falconnier

By doing some guess work with the assistance of
https://msdn2.microsoft.com/en-us/library/bb237538.aspx I was able to assume
that following the format of how to save to Project 98 format
(MSProject.mpp.8), you could change that to MSProject.mpp.9 to get it to save
to 2000-2003 format. Now this doesn't fix the 2007 "bug" if you will, but it
does at least allow me to temporarily circumvent the problem. Here is an
example of the working code line...

objProj.SaveAs(strFileName, PjFileFormat.pjMPP, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
"MSProject.mpp.9", Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing);
 

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