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.
QString folder
= "E:/DataReceiver Excel Log/Mon 20-06-2011, 09.01.xls";
QProcess *process = new QProcess(this);
QString program = "msexcel.exe";
QString folder = "E:/DataReceiver Excel Log/Mon 20-06-2011, 09.01.xls";
process->start(program, QStringList() << folder);
To copy to clipboard, switch view to plain text mode
QString folder
= "E:/DataReceiver Excel Log/Mon 20-06-2011, 09.01.xls";
QString folder = "E:/DataReceiver Excel Log/Mon 20-06-2011, 09.01.xls";
process->start(newfilename, QStringList() << "");
To copy to clipboard, switch view to plain text mode
excelview.load(url);
excelview.showMaximized();
}
QDesktopServices::openUrl(QUrl(tr(newfilename)));
if(!QDesktopServices::openUrl(url)) {
excelview.load(url);
excelview.showMaximized();
}
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
Bookmarks