D
devnull50
I am trying to write a script which will recalculate a project and then
publish the project. I am opening the file using ODBC, recalculating
and saving without a problem. When I publish I get an error "You are
trying to publish a non-enterpirse project to Project Server". This
project is indeed an enterprise project that I opened from the project
server. How can I accomplish this?
Here is the code:
DIM psApp,pj
Set psApp = CreateObject("MSProject.application")
psApp.FileOpen("<ProjectServer>\project.Published")
psapp.CalculateAll()
'psapp.FileSave()
call psApp.PublishProjectPlan()
psapp.FileClose()
Thanks!
-Jim
publish the project. I am opening the file using ODBC, recalculating
and saving without a problem. When I publish I get an error "You are
trying to publish a non-enterpirse project to Project Server". This
project is indeed an enterprise project that I opened from the project
server. How can I accomplish this?
Here is the code:
DIM psApp,pj
Set psApp = CreateObject("MSProject.application")
psApp.FileOpen("<ProjectServer>\project.Published")
psapp.CalculateAll()
'psapp.FileSave()
call psApp.PublishProjectPlan()
psapp.FileClose()
Thanks!
-Jim