Hello, In our application we need to open some word documents located in local machines.
I have a grid with the list file names, when user clicks on row, i want to open the document located in local c:\ drive.
I tried to use
strWordTemplatePath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
to get path of the file located in local machinen and used
string strWordDocumentFulPath = Path.GetFullPath(strWordTemplatePath + "TestFile.docx");
System.Diagnostics.Process.Start(strWordTemplateDot);
its works fine when i run locally, but when published to server the path is directed to server folders.
is there any better way to open a word document from web application, Seen so many references about how to access the local files.. using silverlight and some java.. Am Not sure how to implement in silverlight or java.
Found one article mentioning about outofbrowser application useing silverlight in web aplication on how to access the local file.
http://weblogs.asp.net/nmarun/archive/2009/11/27/local-file-access-silverlight-4.aspx?
Not sure how to open a word document..
Can Someone direct me into correct path...
Thank you