The most obvious question:
Has the computer you deployed you application to got Office installed? If so, is it installed in the place you are expecting? Hardcoding locations like that is a bad move, since you cannot guarantee that the installation directory is the same...
"thank you for the reply.
i have just given the default path of MS Excel&Ppt.so plz guide me if there is some other way .if possible plz give the code for the same.
yes i know that there would a case were the default directory would be different in some cases but i dont know how to go the other way.
please help me."
Don't give a path at all! If it is installed, Windows should know where it is:
ProcessStartInfo runMe = new ProcessStartInfo();
runMe.FileName = "WINWORD.EXE";
Try it: you will see what I mean...:laugh:
Oops - I can't even spell "arguments" today... - OriginalGriff[/edit]