| View previous topic :: View next topic |
| Author |
Message |
Andy Guest
|
Posted: Mon Sep 20, 2004 1:50 pm Post subject: How to create Excel-files? |
|
|
I have some data split in colums. Now I would like to create a working
excelfil from my data in C++. However, it cannot be guaranteed that Excel is
installed on the computer that runs the app I'm writing.
Does anybody know how to do this?
|
|
| Back to top |
|
 |
Peter van Merkerk Guest
|
Posted: Mon Sep 20, 2004 1:56 pm Post subject: Re: How to create Excel-files? |
|
|
Andy wrote:
| Quote: | I have some data split in colums. Now I would like to create a working
excelfil from my data in C++. However, it cannot be guaranteed that Excel is
installed on the computer that runs the app I'm writing.
Does anybody know how to do this?
|
Create a comma separated file, and import that file in Excel.
Note that this newsgroup is only intended for questions about the C++
language itself.
--
Peter van Merkerk
peter.van.merkerk(at)dse.nl
|
|
| Back to top |
|
 |
Duncan Guest
|
Posted: Tue Sep 28, 2004 5:06 pm Post subject: Re: How to create Excel-files? |
|
|
Tab separated with an xls extention is sufficient. If you want
formatting then you can use xml/xhtml. The plus is that you can share
the same code for web pages etc. The excel specific header was:
<html xmlns:x="urn:schemas-microsoft-com:office:excel">
<head>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name></x:Name>
<x:WorksheetOptions>
<x:Print>
<x:ValidPrinterInfo/>
</x:Print>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml>
<![endif]-->
</head>
<body>
Your xhtml here e.g. a colourful table
</body>
</html>
"Andy" <dont (AT) spam (DOT) me> wrote
| Quote: | I have some data split in colums. Now I would like to create a working
excelfil from my data in C++. However, it cannot be guaranteed that Excel is
installed on the computer that runs the app I'm writing.
Does anybody know how to do this?
|
|
|
| Back to top |
|
 |
|