English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am writing a program using visual c++. i want to save some data to a excel file. i need a example code for that. help me

2007-02-22 00:59:55 · 2 answers · asked by jk 2 in Computers & Internet Programming & Design

2 answers

Save from c++ as a csv (comma separated variable) text file e.g.

data1,data2,data3

Excel should import it easily.

2007-02-22 01:08:14 · answer #1 · answered by Del Piero 10 7 · 0 0

examine the code and comments and u will comprehend the code Set e = CreateObject("Excel.utility") 'create excel merchandise Set b = e.Workbooks.upload 'upload a workbook Set s = b.Worksheets(a million) 'sheet a million 'u can edit the sheet right here s.selection("A1").fee = "try" b.SaveAs "C:try.xls" 'shop e.provide up 'provide up excel merchandise

2016-10-16 05:56:17 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers