raphaelf
16th February 2006, 11:49
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?
QProcess *p = new QProcess();
p->addArgument("D:\\Apps\\Microsoft Office\\Office10\\excel.exe");
p->addArgument("W:\\inventar\\Reports\\" + fileName);
p->start();
THX
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?
QProcess *p = new QProcess();
p->addArgument("D:\\Apps\\Microsoft Office\\Office10\\excel.exe");
p->addArgument("W:\\inventar\\Reports\\" + fileName);
p->start();
THX