none
Updating project document from file. RRS feed

  • Question

  • Hi community,

    I need to create a functionality using C# to update opened Project Professional 2013 Document.

    I have an open document with some project.

    At some moment the project file was changed by third party program.

    Those changes need to be displayed in the opened document. How can I update Active Project document programmatically to see changes made to the project file?

    Thank  you,

    Ross

    Thursday, January 29, 2015 9:16 PM

Answers

  • Finally I ended up with this solution:

    app.FileOpen("C:\\spp.xml", false, Microsoft.Office.Interop.MSProject.PjMergeType.pjDoNotMerge);

    Thanks all for reading it :)

    • Marked as answer by RossRuster Thursday, January 29, 2015 10:56 PM
    Thursday, January 29, 2015 10:56 PM

All replies

  • For this purposes I can use function OpenFile.

    Doing that action there is a dialog window "Import wizzard" appears with several options - how to import. Could you please tell me how can I suppress "Import wizzard" and import updated project with "A new project" option (from wizzard).

    Thank you.

    Thursday, January 29, 2015 10:18 PM
  • Think I need:
    PjMergeType Enumeration.

    Correct me please if I am wrong. Thanks.


    Thursday, January 29, 2015 10:43 PM
  • Finally I ended up with this solution:

    app.FileOpen("C:\\spp.xml", false, Microsoft.Office.Interop.MSProject.PjMergeType.pjDoNotMerge);

    Thanks all for reading it :)

    • Marked as answer by RossRuster Thursday, January 29, 2015 10:56 PM
    Thursday, January 29, 2015 10:56 PM