C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to create Excel-files?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Andy
Guest





PostPosted: Mon Sep 20, 2004 1:50 pm    Post subject: How to create Excel-files? Reply with 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
Peter van Merkerk
Guest





PostPosted: Mon Sep 20, 2004 1:56 pm    Post subject: Re: How to create Excel-files? Reply with quote



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





PostPosted: Tue Sep 28, 2004 5:06 pm    Post subject: Re: How to create Excel-files? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.