I don't understand what you mean by "The stand
alone system I want to develop does not interfer with MS Project but it uses
MS Project as a main interface for user input (Gantt chart). "
If you are using MS Project as the main interface for user input, then you
are using MS Project. "Does not interfere" is what baffles me.
Ways to go...
1. Open a project file (Project1.mpp) in MS Project. Using Visual Basic For
Applications (it is already inside of MS PRoject), you can create user forms
and routines to do a lot of things. This is using MS Project as the main
interface. Your code and created forms would become part of either
Project1.mpp or the master template for all Project files on that computer
(Global.mpp). There is plenty you can do with VBA, but it is not nearly as
full featured as an independent development environment. Anything you do to
change the data in Project1.mpp will be reflected in Project1.mpp when you
save it.
In this regard, the user would have to open the file in MS Project before
they could do anything with the custom forms you created.
There is a good book on this topic called VBA Programming for Microsoft
Office Project Versions 98 through 2007, by Rod Gill. ISBN 0-9759828-7-7.
It's absolutely outstanding and I recommend it highly.
To access the Visual Basic for Application development environment (called
the Visual Basic Editor - VBE), open MS Project and press ALT+F11, or,
Tools/Macros/Visual Basic Editor
You can program this to make any type of output you want...export to Excel,
Powerpoint, a Text file, a new Project file.... wake up Word. If you are
tricky you can even get it to make a PDF.
2. Create a stand alone Windows Application using a tool like Visual Studio.
Here, you would have to specify the name of the MS Project file you want to
manipulate-- such as C:\Folder Name\myProjectFile.mpp, it can be done with a
standard OpenFile Dialog Box. Or, you could create a new Project1.mpp file
programmatically. You can have the new application wakeup MS Project in
either a visible or invisible mode. If you do it "silently" then no one will
see the MS Project application GUI... only your GUI. If you make it visible,
then your GUI and MS Project will show.
From within this new stand alone application, with a specific project.mpp
file as a target, you can do anything you could do in MS Project: Add tasks,
edit task information, create links, take %Complete. You could also do it on
the main project file. When your new application closes, you can decide (or
ask the user) if they want to save changes made by your program to the
myProjectFile.mpp. Your new application can make other calculations that you
desire limited only by your imagination. Most of that can be done in VBA as
well.
3. You can save files from MS Project out to various formats. Once such
format is XML. If you do that, then you can write anything you want to
manipulate the data and display it in a broswer such as Internet Explorer.
Once your XML transform saves the file back, you could re-open the XML file
in MS Project and your changes would become visible in the MS Project display.
--
If this post was helpful, please consider rating it.
Jim
Visit
http://project.mvps.org/ for FAQs and more information
about Microsoft Project