Click here to Skip to main content
15,845,279 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to kill exe ? Windows.NET Pin
NanaAM20-May-07 21:38
NanaAM20-May-07 21:38 
GeneralRe: How to kill exe ? Windows.NET Pin
Dave Kreskowiak21-May-07 14:02
mveDave Kreskowiak21-May-07 14:02 
GeneralRe: How to kill exe ? Windows.NET Pin
NanaAM21-May-07 19:21
NanaAM21-May-07 19:21 
GeneralRe: How to kill exe ? Windows.NET Pin
NanaAM20-May-07 19:48
NanaAM20-May-07 19:48 
Questionhow to find the installed time of my application Pin
pashitech18-May-07 23:21
pashitech18-May-07 23:21 
AnswerRe: how to find the installed time of my application Pin
Manoj Kumar Rai19-May-07 0:14
professionalManoj Kumar Rai19-May-07 0:14 
AnswerRe: how to find the installed time of my application Pin
Scott Dorman19-May-07 6:07
professionalScott Dorman19-May-07 6:07 
QuestionCOMException while opening MS-Word files using APIs Pin
Abhishek Joshi18-May-07 21:21
Abhishek Joshi18-May-07 21:21 
Hi,

I am facing problem of COMException while opening MS-Word files on
Windows Server 2003. I am refering Interop.Word.dll for opening MS-Word files to count the
number of words from it.

I am using following API to open the doc files.
Word.ApplicationClass wordApp = null;
Word.Document aDoc = null;
aDoc = wordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, <br /> ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, <br />ref missing, ref missing, ref missing, ref missing);
aDoc.Activate();
If I deploy above code on
Windows 2000 professional then it works without error but if I deploy same code on Windows Server 2003 then I get following exception.
System.Runtime.InteropServices.COMException (0x800A1066): Command failed at <br /> Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles,<br />Object& PasswordDocument,  Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, <br /> Object& WritePasswordTemplate, Object& Format, Object& Encoding,  Object& Visible, <br /> Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)

Is there is other way to overcome this bug?


-- modified at 2:41 Saturday 19th May, 2007

#Abhi#

AnswerRe: COMException while opening MS-Word files using APIs Pin
mav.northwind18-May-07 22:03
mav.northwind18-May-07 22:03 
GeneralRe: COMException while opening MS-Word files using APIs Pin
Abhishek Joshi18-May-07 23:20
Abhishek Joshi18-May-07 23:20 
AnswerRe: COMException while opening MS-Word files using APIs Pin
Manoj Kumar Rai19-May-07 0:10
professionalManoj Kumar Rai19-May-07 0:10 
QuestionHow to scroll two listbox together? Pin
nav_smec18-May-07 20:05
nav_smec18-May-07 20:05 
AnswerRe: How to scroll two listbox together? Pin
Dave Herren21-May-07 13:01
Dave Herren21-May-07 13:01 
QuestionStatusStrip Height Pin
Patricker18-May-07 18:31
Patricker18-May-07 18:31 
AnswerRe: StatusStrip Height Pin
Patricker18-May-07 19:08
Patricker18-May-07 19:08 
GeneralRe: StatusStrip Height Pin
Scott Dorman19-May-07 6:10
professionalScott Dorman19-May-07 6:10 
QuestionHow to custom time(date time picker) Pin
yazeed_pal18-May-07 17:45
yazeed_pal18-May-07 17:45 
AnswerRe: How to custom time(date time picker) Pin
phantanagu18-May-07 21:21
phantanagu18-May-07 21:21 
AnswerRe: How to custom time(date time picker) Pin
Scott Dorman19-May-07 6:14
professionalScott Dorman19-May-07 6:14 
AnswerRe: How to custom time(date time picker) Pin
visualhint30-May-07 15:35
visualhint30-May-07 15:35 
QuestionObject is currently in use elsewhere! Pin
engsrini18-May-07 12:58
engsrini18-May-07 12:58 
AnswerRe: Object is currently in use elsewhere! Pin
Christian Graus18-May-07 13:26
protectorChristian Graus18-May-07 13:26 
GeneralRe: Object is currently in use elsewhere! Pin
engsrini18-May-07 13:39
engsrini18-May-07 13:39 
GeneralRe: Object is currently in use elsewhere! Pin
Colin Angus Mackay18-May-07 14:30
Colin Angus Mackay18-May-07 14:30 
GeneralRe: Object is currently in use elsewhere! Pin
Scott Dorman19-May-07 6:19
professionalScott Dorman19-May-07 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.