Using ADO.Net and Com Interop to read, modify and output from Excel(soulsolutions.com.au)

submitted by BronwenZBronwenZ(230) 4 years, 4 months ago

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:

add a comment |category: |Views: 48

tags: another

new Add a live kick counter to your blog >> liveImage

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:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story