Doc Management System
Now its not about *pure* office automation ! big question for all of you ...don't see my comment on the blog :) in has the answer. here it goes..i have a system to open any document that is selected in the drop-down list using my program(coded in C#) i use Process object to open the docs so that i can log when the document was opened and when it was closed, when i use a word document and say
x =
New Process
x.EnableRaisingEvents = True
x.Start(
"c:\doc3.doc")
after the "Start" x becomes null (nothing), strange ..! then i tried
x.StartInfo.FileName =
"C:\Program Files\Microsoft Office\OFFICE11\winword.exe"
x.StartInfo.Arguments =
"C:\<doc_path>"
x.Start()
this works but still there is a problem, if a document is opened previously then again the i am at the square 1.
Any answers...now what to do ..??? try your dev skills ...!
Comments
- Anonymous
February 08, 2006
I found http://support.microsoft.com/kb/q210565/ and then tried passing "/x C:<doc_name>" as the argument and it works..!! anybody having a better solution is still welcome to comment, and offcourse i have an idea why this problem came at the first place, seems word is trying to optimize the memory