Tuesday, May 11, 2010 6:57 PMIs it possible to call a PSI method from VBA code or a Project AddIn? I'm looking for some kind of mechanism to apply a naming format for new projects that will be saved from MS Project Pro 2010 to the Project Server, when saving there needs to be some kind of checking for the last used number, rise the number and combine it with some text to create a new project name.
Frank Jutte Winvision (http://www.winvision.nl) Project Manager / EPM Consultant
Tuesday, May 11, 2010 7:54 PM
This might help:
- Marked As Answer by Christophe FiessingerMicrosoft Employee, Owner Tuesday, May 11, 2010 8:06 PM
Wednesday, May 12, 2010 3:36 AMModerator
The easiest way to call the PSI from Project Professional is to use an add-in. You can set a reference to a PSI proxy assembly within the Visual Studio 2010 add-in project. The Project 2010 SDK download includes the source files for a proxy assembly, and a script to compile them.Walkthrough: Building a Managed Code Add-in to Check PWA Compatibility is an example using VSTO that adds an event handler and ribbon button, but doesn't call the PSI.Walkthrough: Developing PSI Applications Using WCF includes the basic steps for using the PSI (but you should use a proxy file or the proxy assembly). In an add-in, you'd need to configure WCF programmatically.
- Marked As Answer by FrankJutte Thursday, May 13, 2010 8:50 PM