Click here to Skip to main content
11,796,393 members (71,352 online)
Rate this: bad
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 20:00pm
2000 P574
Sandeep Mewara at 25-Apr-11 2:08am
I think read the same thing couple of days back... a repost?
prasad.koila at 25-Apr-11 2:26am
hmmm.... Not ble to find solution, so thought post it as new question.
Sandeep Mewara at 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 at 28-Apr-11 7:22am
How to detect if different version of the word documents opened?
Rajesh Lagria at 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
0 Maciej Los 570
1 Abhinav S 392
2 OriginalGriff 340
3 CPallini 269
4 KrunalRohit 249
0 OriginalGriff 2,012
1 Maciej Los 1,615
2 KrunalRohit 1,310
3 CPallini 1,015
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web03 | 2.8.151002.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