For Word.Application.Quit I meant the path to the method, actually you should have an object like this: Word.Application wApp = new Word.Application(); Word.Document wDoc = wApp.Documents.Open("foo.doc"); ... wDoc.Close(); wApp.Quit(); AISAC - An Intelligent Sense of A Computer http://aisac.wordpress.com
A Gharighi
Posts
-
Kill a process -
how does accelerate drawing operation?NGen is the tool that ships with .net framework. IF you've installed Visual Studio or .net framework sdk, go to sdk or vs commnad prompt (to have the path to ngen.exe) and try to run ngen.exe, it's a command line tool. AISAC - An Intelligent Sense of A Computer http://aisac.wordpress.com
-
getting system informationSystem.Diagnostics.PerformanceCounter class has access to all performance counters on NT based systems. Supports for CPU and memory usage and a lot more. Check it. AISAC - An Intelligent Sense of A Computer http://aisac.wordpress.com
-
Kill a processIf you are using Interop dlls, so you should have used Word.Application object and the Documents collection to Add/Open a new Document. In this way, when you are done with the object, you can simple use Word.Application.Quit() method. It will close winword.exe automatically. Be sure you're not just openning the document and let it just be. Take care of that by events implementation. AISAC - An Intelligent Sense of A Computer http://aisac.wordpress.com -- modified at 14:29 Thursday 4th May, 2006
-
how does accelerate drawing operation?I don't know how are you doing the painting, but in my experience using double-buffer painting (by calling SetStyle(...)) has great effect on painting. Trying to do "ngen" will show you a very fast code execution resulting a good paint also. AISAC - An Intelligent Sense of A Computer http://aisac.wordpress.com