Author: BlackBar | Posted on: 10/25/2010 4:41:36 AM | Views : 266

Hi! I'm trying to write a code which will converts doc files to docx. As far as I know, I can use ofc.exe for this purposes, but I can't run it from an aspx page.
I'm impersonating the user who has unrestricted rights (user is in a group of the local administrators), but the file is not converted. The strange thing is, that no error or output is generated. Where can be the problem? If you have a better way to convert doc to docx - please, tell me! =)
The code I use to run the ofc.exe is the following:
Process ofcProcess = new Process(); ofcProcess.StartInfo = new ProcessStartInfo(); ofcProcess.StartInfo.FileName = ofcLocation + @"\ofc.exe"; ofcProcess.StartInfo.WorkingDirectory = ofcLocation; ofcProcess.StartInfo.UseShellExecute = false; ofcProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; ofcProce ...

Go to the complete details ...