Hi,
I want to convert a text file to a excel file using C++. Can anyone help? thnx
Printable View
Hi,
I want to convert a text file to a excel file using C++. Can anyone help? thnx
How? What kind of text file, to what kind of Excel file? Be specific.
comvert to what?Quote:
Originally Posted by juju
The text file is a notepad file with the extension .txt and I want to convert this file into an excel one. More specific, the data in the text file should be stored in rows and columns of the excel file.thnx for your time
So does your text file contain data separated by commas, spaces or tabs?
Excel can import this kind of file automatically.
the data in the excel file is seperated by space. I need to do the conversion by a c++ program not directly from excel.
I mentioned something about writing plain text to an Excel file
here Very straightforward because as Salem said, Excel can
import plain text.
You might start with the MSDN Office Developer Center
Take a look at Getting Started With Excel.
You're probably gong to need Visual Studio and Visual Studio Tools for Office Development.
And, you're probably going to need a couple of weeks to figure all of that out!
It would probably be easier with Visual Basic for Applications, than with C++.
have a look at this. http://www.wotsit.org/download.asp?f=excel
it's the file specification format for most versions of excel. You can read in the data from your text file and just export it in this format.
Thank you for your time and ideas :)