Click to See Complete Forum and Search --> : Reading Excel and Wrod files
lok.vikram
July 7th, 2009, 05:37 AM
Hi All,
I need to develop a command line
application to convert .xls and .doc files in to .odf(open document format) file.
I am wondering how to i read .xls files.
Please cal any body tell me using pure c ++ win32 (without mfC and ATL and managed )is it possible to do it.
If possible than provide me infor regarding how to read .xls file and win Api required to fo it.
VictorN
July 7th, 2009, 06:43 AM
Office Automation Using Visual C++ (http://support.microsoft.com/kb/196776)
How to automate Excel from C++ without using MFC or #import (http://support.microsoft.com/kb/216686)
... and so on ... (http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENDE270&q=excel+automation+example+c%2B%2B&aq=1&oq=)
lok.vikram
July 8th, 2009, 10:14 AM
Hi Victor,
Thanks for your valuable information.
but the problem this application needs to be run on both windows and linux.
as this appication will convert xls,doc.,ppt,odt,ods(open office files for both linux/windows) and pdf,wordstar in to odf format.
client want application in pure C++ without using COM/MFC .
though nobody will open word/excel file on linux platform but it would good to have neutral code that will run on both system.
Is there any way to read binary excel file than retrive the information accroding to format given in the following site.
what you have suggested that i have kept that as last option,by maintaning switch (compiler directive the code for linux and windows)
I have found excel file format.
http://download.microsoft.com/download/0/B/E/0BE8BDD7-E5E8-422A-ABFD-4342ED7AD886/Excel97-2007BinaryFileFormat(xls)Specification.pdf.
VictorN
July 8th, 2009, 10:32 AM
... but the problem this application needs to be run on both windows and linux.
as this appication will convert xls,doc.,ppt,odt,ods(open office files for both linux/windows) and pdf,wordstar in to odf format.
client want application in pure C++ without using COM/MFC ...In this case you should have asked it in the C++ (Non Visual C++ Issues) Ask or answer C and C++ questions not related to Visual C++. This includes Console programming, Linux programming, or general ANSI C++. (http://www.codeguru.com/forum/forumdisplay.php?s=&daysprune=&f=9) forum.
Nevertheless, I am glad that you have found the excel file format description! :)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.