locked
Export to Ms Project 2007 - Parent tasks displays twice after call FileSaveAs method RRS feed

  • Question

  • User1407517138 posted

    I have a web site with export to Ms Project 2007 and Ms Project 2010 file. I have problem with export to 2007. The site use Microsoft.Office.Interop.MSProject.dll version 14.

    For export to 2007 I call method FileSaveAs with format pjMPP12 (pjMPP for 2010). Export to 2010 is ok, but when i try to export to 2007 has a follow problem: Microsoft.Office.Interop.MSProject.Project.Tasks.Count is more before call a method FileSaveAs.

    I use OutlineIndent() for child task and some parent task displays twice.

    //format - Microsoft.Office.Interop.MSProject.PjFileFormat.pjMPP12

    I call FileSaveAs with parameters (FilePath, format , Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value) 


    Have you any ideas why happen this?


    Monday, January 10, 2011 8:38 AM

Answers

  • User1407517138 posted

    I found a problem. It needs to set task.Manual = false because 2007 don't support Manually Schedule Task mode.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 10, 2011 9:38 AM