Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help export

Status
Not open for further replies.

akp09

Technical User
May 21, 2003
1
PH

Hi,

How would you export text file to Excel file in
Console Application?
 
hi

well.. you have to first import the text file to your application then export it to excel file.

export - you could try OLE automation/COM programming
Remember excel have cells(rows and columns).

cheers,
mha
 
a) Just open with Excel, and use the wizard to convert columns to fields etc.

b) Read the file, convert to columns in the way you need, write back as a .CSV file, with fields separated with commas, and fields that contain commas enclosed with quotes.
Depending on the windows settings for fieldseparator (comma?) the file will be read correctly.

HTH
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top