Hi ALL,
I have a small application APP A that converts excel and doc files to text files. I have another application APP B that is running as services on my windows server.
Within APP B I have a call to APP A and I am passing the source filename and path to APP A to convert these files to text files.
Now I am able to debug the process and these are my findings and issues:
Findings:
1. App A is getting the correct source file name and path name.
2. App A is calling the right converter method to convert the excel or word file.
3. I can see in the Processes tab of windows task manager that Excel.exe or Winword.exe getting started when my App B makes the call to App A.
Issue:
1. The exception I am getting is "server execution failed". Even though I have the Excel.exe or WinWord.exe running in the processes of Windows Task Manager, something is not allowing App A to carry on with the conversion process.
NOTE: The conversion process actually opens EXCEL or WORD application with visible property - FALSE and use their SaveAS method to convert the files to text file.
Also when I run APP A from dos prompt and pass the source file name with path it run succesfully and converts the excel or doc file to text file.
I hope I am clear enough with my problem. I would really apprecite if someone can help or give any suggestions.
Thanks
I have a small application APP A that converts excel and doc files to text files. I have another application APP B that is running as services on my windows server.
Within APP B I have a call to APP A and I am passing the source filename and path to APP A to convert these files to text files.
Now I am able to debug the process and these are my findings and issues:
Findings:
1. App A is getting the correct source file name and path name.
2. App A is calling the right converter method to convert the excel or word file.
3. I can see in the Processes tab of windows task manager that Excel.exe or Winword.exe getting started when my App B makes the call to App A.
Issue:
1. The exception I am getting is "server execution failed". Even though I have the Excel.exe or WinWord.exe running in the processes of Windows Task Manager, something is not allowing App A to carry on with the conversion process.
NOTE: The conversion process actually opens EXCEL or WORD application with visible property - FALSE and use their SaveAS method to convert the files to text file.
Also when I run APP A from dos prompt and pass the source file name with path it run succesfully and converts the excel or doc file to text file.
I hope I am clear enough with my problem. I would really apprecite if someone can help or give any suggestions.
Thanks