"MSProject.Application" with connection to Project Server 2003

B

busterbaxter

Hello everybody,

I can't solve the following problem.

A script code inside Internet Explorer wants to open MS Project Prof
2003 with a connection
to MS Project Server 2003. The Visual Basic code would be like this:

Dim P
Set P = CreateObject("MSProject.Application")


Unfortunately this way opens MS Project Prof. always in offline mode
without any
chance and any way to build a connection to MS Project Server 2003.

In order to get the Logon window inside MS Project Prof. I got the hint
to open a shell
and start "WINPROJ.EXE " with some parameters.

But I cannot use this way!! Because I want to open MSProject from
Javascript code
inside a browser. Javascript is not allowed in any known way to open a
shell!
And I am glad that it is so :)


So I searched in the ASP code of PWA:

A project manager opens PWA, clicks on "Updates" in the menu, accept
the values,
and then clicks on the "Update" button. The client javascript routine
behind this button
uses the PJUPDATE.OCX control. This control is able to open MS Project
Prof. with
connection to MS Project Server 2003 . When the project manager accepts
the values and
presses the "Update" button then MS Project Prof. opens and connects to
MS Project Server.

That is want I want, open MS Project Prof. with connection to MS
Project Server with
Javascript.

Create an instance of "MSProject.Application" directly does not work,
starting "WINPROJ.EXE" in a shell does not work also,
but this control PJUPDATE.OCX works.

But how does he do this? Does anybody know?

The idea to create an instance of this control works, but it does not
have any methods
to connect to MS Project Server.

Thanks in advance for any hints how to create a MS Project Prof. object
with connection
to MS Project Server!!

Best regards,
Buster Baxter
 
R

Rod Gill

The only way I know is to start Project with a shell command so you can
nominate the project server location. Then you can connect to Project with a
GetObject.
 
B

busterbaxter

Hi Rod,

thanks for your answer.

Now there is the next problem. When I get the MSProject.Application
object with
the GetObject() command is there a way to find out if this instance is
running
in offline mode or in Project Server mode ?
The method to load a project is the same for both modes, it is
".FileOpen".

Regards,
Buster Baxter
 

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