Hi!

I believe that you have to have the project window opened before exporting.

/Carsten

________________________________

Fra: morx999 [mailto:[EMAIL PROTECTED]
Sendt: on 17-11-2004 16:40
Til: [EMAIL PROTECTED]
Emne: [development-axapta] treeNodeExport






I would like export a Project by code (see example 1). But it doesn't
work well. The export creates a xpo-file, but inside are only the
headers (see example 2), I miss the objects.
Can anyone help me?

**************************************************************
Example 1:
**************************************************************
static void Job9(Args _args)
{
    ProjectNode prn;
    int         exportFlag;

    exportFlag = True;

    prn = infolog.projectRootNode();

    prn = prn.AOTfirstChild();
    prn = prn.AOTfirstChild();

    if (prn)
    {
        prn.
        prn.treeNodeExport("k:\\tmp\\test_export.xpo",exportFlag);
    }
}tFlag);
    }
}
}


**************************************************************
Example 2:
**************************************************************
Exportfile for AOT version 1.0 or later
Formatversion: 1

***Element: PRN

; Navision Axapta Project : ApplUpgrade_V25-V30usr unloaded at
Mittwoch 17.11.04
;
--------------------------------------------------
------------------------------
  PROJECTVERSION 2

  PROJECT #ApplUpgrade_V25-V30usr
   PRIVATE
  PROPERTIES
    Name                #ApplUpgrade_V25-V30usr
  ENDPROPERTIES

  ENDPROJECT


***Element: END

***Element: END










Yahoo! Groups Links











[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to