Reputation: 13721
I have some C# code which formats a MS Project file. This code works absolutely fine.
Problem: Now, I want to run the same C# code through a macro script.
Question: How can I execute the C# code through my MS Project macro. So, whenever the user opens an MS Project file, it runs the macro which in turn executes the C# code and formats the concerned file.
I am using Ms Project 2002.
Is this even possible? Please request for any additional information required.
Upvotes: 1
Views: 728
Reputation: 5084
What you want to do use the Visual Studio Toolkit for Office (VSTO) to create an Office plug-in that will be called on application start or project load. You can find a good "getting started" article here.
The sample is in VB.NET but the same principles and object model is available in C#.
Upvotes: 2