Click here to Skip to main content
11,927,711 members (34,806 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# .NET Word

Below given MS support solution is creating new insatnce on the fly and getting the instance name:;en-us;316126[^]
using Word = Microsoft.Office.Interop.Word;
	Word.Application wdapp;
	System.Diagnostics.Process.Start("<Path to WINWORD.EXE>");
	wdapp = (Word.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application");
	wdapp = null;
But I need no of word instances and its name, without creating new instance of word.

Could some one help me?
Posted 24-Apr-11 21:00pm
2000 P574
Sandeep Mewara 25-Apr-11 2:08am
I think read the same thing couple of days back... a repost?
prasad.koila 25-Apr-11 2:26am
hmmm.... Not ble to find solution, so thought post it as new question.
Sandeep Mewara 25-Apr-11 2:36am
So, did you got some reply there? you interacted with the answerer?

Editing the old one would also pop the question back to top of stack...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

use this

object word;
word = System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application"); 
catch (COMException) 
     Type type = Type.GetTypeFromProgID("Word.Application");
     word = System.Activator.CreateInstance(type);
prasad.koila 28-Apr-11 7:22am
How to detect if different version of the word documents opened?
Rajesh Lagria 28-Apr-11 20:00pm
microsoft office 2000,2003 file format *.doc and 2007 file format *.docx
Rate this: bad
Please Sign up or sign in to vote.

Solution 3


Please go through with this post
Running Instance of Word


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 25 Apr 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100