.NET use how to use project default profile

C

Cladsam

Hi,

I'm trying to developp an application using PIA2003.
What I would like to do is declare an application class object
retrieve information from projects on Project Server with that objec
in order to send them to my own application.

On the computer runing my application , there is Project Professiona
with 2 profiles in
Microsoft project server office accounts. First is the one create b
the project installtion with the name: "mon ordinateur", the second
the default one , I named 'Server" is the one I would like to use in m
.Net source code.

If i try this:

Dim appli As New MS.ApplicationClass

MSgbox(appli.Profiles.activeProfile.name & " "
appli.profiles.defaultProfile.name)


2 differents cases:
- if project isn't runing on the comp, the message is " mon ordinateu
Server' that means, the applicationclass object activated 'mo
ordinateur' insteed of the default profile 'Server'

- if project is runing , it's ok activeprofile= defaultprofile

So , I would like to know how to use the default profiel as an activ
profile in all cases.

One other thing when it's ok ( when active profile is the good one),
would like to know retrieve data of project that are on project serve
but that are not open in MS Project ( cause I dont want the user t
open each project he want my appli to treat )

Thank
 
R

Rod Gill

Hi,

Two solutions:
1) use Project Server's PDS programming interface - see
www.msdn.microsoft.com for details
2) use queries directly into the MSP_VIEW tables in SQL Server. Note that
some of this information is only updated when projects a published.
 
E

Ed Morrison

If you are using the application object, you have to connect to the project
server database. You can use a command line switches. See my posting on
"MSP Default Project Template".
 

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