Click here to Skip to main content
15,898,374 members
Home / Discussions / C#
   

C#

 
GeneralRe: mousedown event Pin
Martin#18-Jul-07 3:13
Martin#18-Jul-07 3:13 
GeneralRe: mousedown event Pin
tim_gunning18-Jul-07 3:19
tim_gunning18-Jul-07 3:19 
GeneralRe: mousedown event Pin
Martin#18-Jul-07 3:23
Martin#18-Jul-07 3:23 
GeneralRe: mousedown event Pin
tim_gunning18-Jul-07 3:29
tim_gunning18-Jul-07 3:29 
GeneralRe: mousedown event Pin
Luc Pattyn18-Jul-07 3:26
sitebuilderLuc Pattyn18-Jul-07 3:26 
GeneralRe: mousedown event Pin
Martin#18-Jul-07 3:37
Martin#18-Jul-07 3:37 
GeneralRe: mousedown event Pin
tim_gunning18-Jul-07 3:38
tim_gunning18-Jul-07 3:38 
Questionclosing WinWord.exe Pin
Morad SAJID18-Jul-07 2:23
Morad SAJID18-Jul-07 2:23 
hello everyone,
i m new in this discussion board,
I develop an application which handles the Word files, i use the class Microsoft.Office.Interop.Word, this class has an object named application which contains the documents, the problem is when I turn my application in a specific machine, with closing the application, word.exe remains always in éxécution
, but in my machine all goes well,


to open a word document :
<br />
<br />
Microsoft.Office.Interop.Word.Document document;<br />
Microsoft.Office.Interop.Word.Document.ApplicationClass wd = null;<br />
wd = new Microsoft.Office.Interop.Word.ApplicationClass();<br />
 document = wd.Documents.Add(ref missing, ref missing, ref missing, ref missing);<br />
 <br />

to close the document and my application:
object dummy=null;<br />
object dummy2=(object)false;<br />
document.Close(ref dummy, ref dummy, ref dummy);<br />
wd.Quit(ref dummy2, ref dummy, ref dummy);<br />
 Marshal.ReleaseComObject(wd);<br />

how can we be sure that the application(winword.exe) is closed? Confused | :confused:



Thanx
Morad SAJID
AnswerRe: closing WinWord.exe Pin
Martin#18-Jul-07 2:30
Martin#18-Jul-07 2:30 
GeneralRe: closing WinWord.exe Pin
Morad SAJID18-Jul-07 2:42
Morad SAJID18-Jul-07 2:42 
AnswerRe: closing WinWord.exe Pin
lost in transition 18-Jul-07 6:09
lost in transition 18-Jul-07 6:09 
GeneralRe: closing WinWord.exe Pin
Morad SAJID18-Jul-07 6:29
Morad SAJID18-Jul-07 6:29 
GeneralRe: closing WinWord.exe Pin
Morad SAJID18-Jul-07 6:38
Morad SAJID18-Jul-07 6:38 
Questiondo you know how to do this ? Pin
prasadbuddhika18-Jul-07 2:04
prasadbuddhika18-Jul-07 2:04 
AnswerRe: do you know how to do this ? Pin
Colin Angus Mackay18-Jul-07 2:08
Colin Angus Mackay18-Jul-07 2:08 
GeneralRe: do you know how to do this ? Pin
Pete O'Hanlon18-Jul-07 2:20
mvePete O'Hanlon18-Jul-07 2:20 
GeneralRe: do you know how to do this ? Pin
Martin#18-Jul-07 2:24
Martin#18-Jul-07 2:24 
GeneralRe: do you know how to do this ? Pin
Pete O'Hanlon18-Jul-07 2:27
mvePete O'Hanlon18-Jul-07 2:27 
Questionhow to specify key file in this ? Pin
ademsandeepreddy18-Jul-07 1:50
ademsandeepreddy18-Jul-07 1:50 
AnswerRe: how to specify key file in this ? Pin
originSH18-Jul-07 2:00
originSH18-Jul-07 2:00 
QuestionOpened datareader Pin
Razvan Dimescu18-Jul-07 1:38
Razvan Dimescu18-Jul-07 1:38 
AnswerRe: Opened datareader Pin
Sylvester george18-Jul-07 2:03
Sylvester george18-Jul-07 2:03 
AnswerRe: Opened datareader Pin
ScottM118-Jul-07 2:09
ScottM118-Jul-07 2:09 
GeneralRe: Opened datareader Pin
Razvan Dimescu18-Jul-07 2:18
Razvan Dimescu18-Jul-07 2:18 
QuestionInvalid operation Exception on selectedindexchange event of combo box in C# Pin
kalaveer18-Jul-07 1:30
kalaveer18-Jul-07 1:30 

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.