use different global.mpt

D

Dan

Hi
I have application which communicate with MS Project through OLE Automation.
In some special situations I need to start MS Project with different
global.mpt. How can I do it? Maybe I look wrong, but don't find any property
or function like ChangeGlobal, SetGlobal, etc. Thank you for any answer

Dan
 
J

Jan De Messemaeker

Hi,

There are probably several methods but it does work when (with MS Project
closed) you open an .mpp file residing in the directory of the alternative
global.
HTH
 
D

Dan

I find this solvent, but thank you for answer. I prefere to find how do it
by OLE Automation. This solution have one problem - it visually start MS
Project. I prefere to prepare and load data and set MSP and finally when is
everything ready set it visible. Is there any possibility how to set global
before visualising MSP?

Dan
 
J

Jan De Messemaeker

I wouldn't know, sorry. What'as against opening MSP if you'll open it later
anyway?
 
D

Dan

Problem is that I use MSP to show data in our database. And before showing
this data I must convert them and change some (a lot of) settings in MSP. It
is time consuming and that's why I show proces bar. When is everytning
ready, then I show prepared MSP. That is why I prefere to change global by
OLE or by another unvisual way.

Dan
 
R

Rod Gill

I think Jan and I are quite confused. Are you saying you don't want to show
any results until you have finished? One way is to call a Windows API to
stop screen updating. Another way is to display a second project with no
tasks then delete it once you have finished.
 
D

Dan

Of course it is possible to use that solution, but I prefere use unvisual
change of global if it exists. Because it will look better.
I thing that it is time for more detailed info:
My program work with building industry data. And MSP is used for making
harmonogram of work. Very often I send to MSP a lots of data - only opening
that data takes 2 or 3 minutes. In this time my application show progress
bar and when everything is ready, I show MSP. It works perfectly, but there
is new requirement - in some special situation open MSP with different
global. I want to show progress bar in my application and when it's finished
then want to show prepared MSP.

Dan
 
R

Rod Gill

Have you tried setting calculation to manual before reading the data then
resetting to Automatic afterwards? Might speed things up.

I'm still not clear on what you want to show, is it a different View in a
different Global.Mpt? If so, why not build into your code creating the view
you want? Record a macro of you creating a new view using View, More Views
etc. That way you don't need a separate Global.Mpt
 
D

Dan

Hi
I finally decide to execute MS Project in different directory where is
different global. It work correctly but of course MS Project is opened with
empty project. And when my project is open, this empty still stay there. How
to say to MS Project to open without empty project? Or say him to close it
and don't ask for saving?

Dan
 

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