|
|
submitted by
BronwenZ
1 year ago
soulsolutions.com.au — Today I was asked to do what seemed like a fairly simple task:
Take an Excel 2003 file, add a couple of columns of data and save to a new Excel file programattically.
I haven't done any coding Excel for AGES so this i what I did. To read in the file and add the extra columm and data I did the following:
Used OleDBConnection to grab the data from the sheet into a dataset
Added some columns to the dataset
did some processing and set the data in the dataset
with the following code:
|
|
tags:
Excel, Com.Interop, ADO.NET, Database | tag it
Everyones tags: | Your tags: | |
|
|
|
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking
the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
Users who kicked this story:
No comments so far
|