Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5997317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:14:47+00:00 2026-05-23T00:14:47+00:00

I am writing a C# Console Application and I am correctly opening an Excel

  • 0

I am writing a C# Console Application and I am correctly opening an Excel file. I just can’t figure out how to read data from cells and copy it into an array. Most of the code I have found list examples that won’t work with VS 2010. It appears they have changed how to read cell data in every version. I am wanting to read a variable amount of rows depending on how long the data goes. I am wanting to read cells [B8]-[*8].

I have spend a couple of days on this without much luck.

Thanks very much,
BuZzZzJaY

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:14:47+00:00Added an answer on May 23, 2026 at 12:14 am

    You can use this method
    workSheet.get_Range(“A1”, “A1”).EntireRow.EntireColumn

    use bellow code this is 2d array. Iterate in this

    Object[,] obj = (object[,])sheet.get_Range(“A1”, “B4”).Value2;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a console application that reads in from a csv file and stores
I'm writing a console application that does a good amount of data retrieval from
I'm writing some quick code to try and extract data from an mp3 file
I am writing an application with Sencha Touch. So I read a XML file
I am writing an application that fetches data from MS AX Dynamics once-in-a-very-long-while The
I have just finished writing my c# console application, and I am contemplating embedding
I am writing a console application which makes use of the F1 key (for
I'm writing a console application that will be deployed with an installation of an
I'm writing a console application in Visual Basic 2008 Express. I added several text
I am writing a console application in python that will consist of a handful

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.