Hi everybody,

OS: WINXP
Compiler: MINGW
QT: 3.4


The following code works perfect. My problem is that office is installed on machines in different path for example: "C\Program files\Office" or "D:\Office"
How could i be sure that my file can be opened with EXCEL in every Machine?
Qt Code:
  1. QProcess *p = new QProcess();
  2. p->addArgument("D:\\Apps\\Microsoft Office\\Office10\\excel.exe");
  3. p->addArgument("W:\\inventar\\Reports\\" + fileName);
  4.  
  5. p->start();
To copy to clipboard, switch view to plain text mode 

THX