On Nov 4, 2007 11:53 AM, ed <[EMAIL PROTECTED]> wrote:
> On Sun, 04 Nov 2007 12:06:06 -0000
> "hamed" <[EMAIL PROTECTED]> wrote:
>
> > Could you please let me know how I can convert .xls files to .txt
> > using c++?
>
> rename( "wxyz.xls", "wxyz.txt" );
>
> Check errno for errors after.
>
> .xls is a proprietary format. You should use the manufacturers
> documentation for advice on how to achieve this. It will probably mean
> using a proprietary system to parse the file, and then using your own
> code to output appropriately.

Didn't a similar question come up last week about exporting data from
Excel? Excel can directly export to character-delimited text -- I
imagine there is a COM object one can use in C++ to do this (although
I imagine it's far easier to do with Excel macro scripting or VBA).

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to