F
FR
Hi,
I'm trying to create a new project and add some tasks with duration to it in
project 2000 using the project object model. I'm not having much luck. I'm
using delphi so I'm just going to list the steps I'm taking:
1) Open project (create an instance of MSProject)
2) Set PromptForSummaryInfo to false
3) Add a project and activate it so it is the active project
4) Change project title
so far so good.
I add a task by calling Tasks.add with the first parm being the name of the
task and second being empty.
This doesn't seem to work as no tasks are added to the project.
Also when I call FileSaveAs I get varying errors. The only params I specify
for this call are the name of the file and the format which is pjMPP.
Any help, especially any code snippet or any article/site that talks about
something similar is greatly appriciated.
TIA,
FR
I'm trying to create a new project and add some tasks with duration to it in
project 2000 using the project object model. I'm not having much luck. I'm
using delphi so I'm just going to list the steps I'm taking:
1) Open project (create an instance of MSProject)
2) Set PromptForSummaryInfo to false
3) Add a project and activate it so it is the active project
4) Change project title
so far so good.
I add a task by calling Tasks.add with the first parm being the name of the
task and second being empty.
This doesn't seem to work as no tasks are added to the project.
Also when I call FileSaveAs I get varying errors. The only params I specify
for this call are the name of the file and the format which is pjMPP.
Any help, especially any code snippet or any article/site that talks about
something similar is greatly appriciated.
TIA,
FR