Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Converter Using C++

Hi Guys,

I have just started a C++ unmanaged college course and i want to write an
object to help me read into an Excel (.XLS) file, and convert it to CSV. Im
having problems knowing where to start! I have a BIGGGGG document identifying
how Excel is saved into its various componets (i.e. BIFF) and this isnt
helpful at all.

Using Visual Studios 2005, how do i identify what the rows/columns data is?
Are there any Objects already out there that i can learn from??

Any tips would be helpful!

Chars

G'Man


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Excel Converter Using C++

Just create an instance of Excel, open the workbook, an save it as CSV. No
need to worry about the formats.

Can't help you with the C"" code I am afraid, but in VB/VBA it would be

Dim XLApp As Object
Dim XLWB As Object

Set XLApp = CreateObject("Excel.Application")
XLApp.Visible = True
Set XLWB = XLApp.Workbooks.Open("C:\test\SP Test.xls")
XLWB.SaveAs "c:\test\SP Text.csv", FileFormat:=6 'xlCSV
Set XLWB = Nothing
XLApp.Quit
Set XLApp = Nothing



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Garfbradaz1" wrote in message
...
Hi Guys,

I have just started a C++ unmanaged college course and i want to write an
object to help me read into an Excel (.XLS) file, and convert it to CSV.
Im
having problems knowing where to start! I have a BIGGGGG document
identifying
how Excel is saved into its various componets (i.e. BIFF) and this isnt
helpful at all.

Using Visual Studios 2005, how do i identify what the rows/columns data
is?
Are there any Objects already out there that i can learn from??

Any tips would be helpful!

Chars

G'Man




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Converter for Excel 2007 RBB Excel Worksheet Functions 1 June 11th 09 07:46 PM
Is there any way of using any currency converter in EXCEL AERP Excel Discussion (Misc queries) 2 May 26th 09 03:45 PM
Unit Converter for Excel fncosanchez402 New Users to Excel 1 June 21st 08 04:21 PM
adobe converter in excel kania Excel Discussion (Misc queries) 2 December 12th 06 08:06 PM


All times are GMT +1. The time now is 02:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"