Hello every one.. I am working on a Qt application where i write some data to a Excel file , now i have given a option in Toolbar to view the excel file to which i have written data into. I tried many things looking at the forums but it din help the excel file does not open.

i did the following but does't open up a Excel.

Qt Code:
  1. QProcess *process = new QProcess(this);
  2. QString program = "msexcel.exe";
  3. QString folder = "E:/DataReceiver Excel Log/Mon 20-06-2011, 09.01.xls";
  4. process->start(program, QStringList() << folder);
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. QString folder = "E:/DataReceiver Excel Log/Mon 20-06-2011, 09.01.xls";
  2. process->start(newfilename, QStringList() << "");
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. QDesktopServices::openUrl(QUrl(tr(newfilename)));
  2. if(!QDesktopServices::openUrl(url)) {
  3. excelview.load(url);
  4. excelview.showMaximized();
  5. }
To copy to clipboard, switch view to plain text mode 

none of the three above methods worked.. What is it wrong that i am doing. ?

Thank you