C# MS Project addin for 2k, 2k2, 2k3

D

DapperDanH

I've written a C# application (MSP Addin) that uses MS Project 2002. But, I
have a mix of Project 2k, Project 2002 and Project 2003.

I've read KB articles about Office development under the .Net framework,
including an article on the Office XP PIAs. But I still lack an understanding
of how to automate the various versions of Microsoft Project from my
application.

Do I need to build a separate executable to reference the different flavors
of Project?

Can I modify my deployment project to package multiple interop assemblies?

Is there a road map that describes the best practice for automating
different versions of Office/MS Project using C#.

Dan
 
W

Wei-Dong XU [MSFT]

Hi ,

Office 2003 has the PIA in its installation CD and Office XP provides the
PIA from MSDN web site. You can obtain it from the location:
Office XP PIAs
http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-
A6B4-01FEBA508E52&displaylang=en

For Office 2000, you will need to generate your own Office 2000 PIA for the
development. So for your requirement, I'd suggest you will need to prepare
the different distribution package for your deployment, and at the
installation time, please detect the client scenario to see which office is
used and whether the corresponding PIA has been deployed.

This kb article introduces the lots of issues regarding the development of
office in VS.net which may provide further assistance for you.
311452 INFO: Develop Microsoft Office Solutions with Visual Studio .NET
http://support.microsoft.com/?id=311452

In addition, this two articles below introduce the .net PIA for you with
the known issue of Office XP pia.
Primary Interop Assemblies (PIAs)
http://msdn.microsoft.com/library/en-us/dndotnet/html/whypriinterop.asp

Office XP Primary Interop Assemblies Known Issues
http://msdn.microsoft.com/library/en-us/dnoxpta/html/odc_piaissues.asp

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Wei-Dong XU [MSFT]

Hi,

From my view, the two kb articles below may also provide some assistance
for your issue:
PRB: Primary Interop Assembly (PIA) Install Occurs the First Time That You
Open a Microsoft Office Document That Is Referenced by a Managed Code
Extension
http://support.microsoft.com/?id=823986

Information about designing Office XP add-ins and Office 2003 add-ins by
using the .NET Framework
http://support.microsoft.com/?id=840585

About the deployment, though this article is about the SmartTag component,
I think this should be helpful for you.
Deploying Managed Smart Tag DLLs
http://msdn.microsoft.com/library/en-us/stagsdk/html/stconDeployManagedST.as
p

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Wei-Dong XU [MSFT]

You are welcome! Don't hesitate to let me know if you have any further
question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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