As a workaround, how about exporting to xml. That way you could create a document template in Excel, with all the different styles, and formats you need and just fill in the actual content.
Assuming that your tables all share a similar format, you could use a static header and footer and just fill in your relevant rows.
I'm attaching a simple example file.
The format for a row would be something like:
out << "<Row>";
for(int i=0;i<nrOfCols;i++)
out <<
QString("<Cell %1><Data %2>%3</Data></Cell>").
arg(style
).
arg(format
).
arg(data
);
out << "</Row>";
out << "<Row>";
for(int i=0;i<nrOfCols;i++)
out << QString("<Cell %1><Data %2>%3</Data></Cell>").arg(style).arg(format).arg(data);
out << "</Row>";
To copy to clipboard, switch view to plain text mode
Bookmarks