Hi all,

I'm trying to create an Excel XML workbook ( I didn't want, but it's strictly necessary )

I've to build an "export to Excel" option in my "very-fashioned-and-colored-grid" that runs on a linux machine, because all my users use windows as client and I have to allow them to manipulate data externally.

I have made a "CSV-export" option, but they want too the colors and some other options and they don't like to import every time ( as csv forces them to do ).

An Excel.xml file looks like this :

Qt Code:
  1. &#65279;<?xml version="1.0"?>
  2.  
  3. <?mso-application progid="Excel.Sheet"?>
  4.  
  5. <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
  6.  
  7. xmlns:o="urn:schemas-microsoft-com:office:office"
  8.  
  9. xmlns:x="urn:schemas-microsoft-com:office:excel"
  10.  
  11. xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
  12.  
  13. xmlns:html="http://www.w3.org/TR/REC-html40">
  14. ...
  15. </Workbook>
To copy to clipboard, switch view to plain text mode 

The ... zone is trivial ( simple sections easy to do with Qt's classes ), but I don't know how to generate the first 2 lines that begin with "<?".

Any idea ?

Thanks in advance,

Jordi.