How to Convert Excel sheet file to .cvs format using VC++
C / C++ / MFC
4
Posts
4
Posters
0
Views
1
Watching
-
-
The easiest way i thinnk is: Open the excel sheet programmetically, save it as .cvs or .csv format or whatever format you want. To do that you need to improt excel class from type library. For details go to MSDN. Please let me know if you find the better way at soft.gandhi@gmail.com.
Anurag Gandhi. http://www.softgandhi.co.nr
-
Using Excel Automation, do something like:
_Application app;
Workbooks books;
_Workbook book;if (app.CreateDispatch("Excel.Application") == TRUE)
{
books = app.GetWorkbooks();book = books.Open("c:\\\\book1.xls", ...); book.SaveAs(COleVariant("c:\\\\book1.cvs"), ...); app.Quit();
}
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne