I have a standard option in my grids: when user presses ctrl-e, the grid content is exported to excel.
This is done by loops like:
Code: Select all
for (ds->First(), iRow=1;!ds->Eof();ds->Next(), iRow++)
for (i=0; i<ds->Fields->Count; i++)
xls->write(iRow, i+1, ds->Fields->Fields[i]->Value;
I am sure it could be very fast if TOraDataSet could include a method that would take the grid contents, copy it in memory in html format, that you can paste in excel (or open office) using one single OLE call.
Just a suggestion... that could make odac better again compared to other tools.
If you have any other hint to speed this, you're welcome.
Regards.