DatabaseProjectUniqueID is always -1

D

DenizDuelec

Hi!

If I use the Object-Model to retreive the GUID the returned value is always
-1.
I am using an Add-In for Project 2007:

applicationObject.Application.ActiveProject.DatabaseProjectUniqueID

http://msdn2.microsoft.com/en-us/library/bb179625.aspx says:
Returns the project unique ID for a project stored in a database. Read/write
Variant.

My Object is always an Integer with value -1.

It doesnt matter if the project is published or just a draft.
I can see both GUID in the datbase.

DatabaseProjectUniqueID works fine in 2003 but not in 2007.
I want to migrate my Add-In from 2003 to 2007 and I am using the
DatabaseProjectUniqueID in 2003 for a Web-Service call.
 
D

DenizDuelec

Thank you very much!!!

If Project 2007 (P12) Use ActiveProject.GetServerProjectGuid

If Project 2003 (P11) Use ActiveProject.DatabaseProjectUniqueID
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top