Open enterprise project from a c# add-in (application.FileOpen)

C

Cutter

Hello,
i try to open a Enterprise Project (stored on project server 2007) from a c#
add-in.

I use this code:

string name = "TestEnterpriseProject";

app.FileOpen("<>\\" + name, false, Type.Missing,
Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing,
Type.Missing, Type.Missing,
MSProject.PjPoolOpen.pjDoNotOpenPool,
Type.Missing, Type.Missing, Type.Missing, Type.Missing);

But nothing happens. The code runs and runs and runs at this line and never
ends.
Any idea?

Thanks a lot,
Cutter
 
R

Rod Gill

Firstly, can you open the project manually using the same login? There may
be a security issue and we need to eliminate that first.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.com
 
C

Cutter

Yes i can. During development i have admin rights.
So manually i can open the project.
But using the shown code always stays at this fileOpen line, and stays and
stays...

thanks
Cutter
 

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