You can also do this with NetOffice.
Website: http://netoffice.codeplex.com/
Using it, you don’t have to worry about versions that are “Syntactically and semantically identical to Microsoft Interop assemblies”, so you do your coding the same way.
Some other benefits:
- Office integration without version restrictions
- All objects, methods, properties, and events in Office 2000, 2002, 2003, 2007,2010 are included.
- Attribute concept and XML source documentation for information on which versions of Office offer a particular method or property
- No training, if you already know the Office object model, use existing PIA code
- Reduced and readable code with automatic control of COM proxies
- There are no obstacles to deployment, no problem registration, no dependencies, no assembly interaction, no VSTO needed
- Used with .NET version 2.0 or higher
- Simple application development
source share