How to create Excel-files?

A

Andy

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?
 
P

Peter van Merkerk

Andy said:
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.
 
D

Duncan

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:eek:ffice: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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,176
Messages
2,570,947
Members
47,501
Latest member
Ledmyplace

Latest Threads

Top