Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Read XLS file by using the GemBox.Spreadsheet.NET component.

Tags: worksheet
var workbook = ExcelFile.Load("MyWorkbook.xls");
var worksheet = workbook.Worksheets.ActiveWorksheet;
MessageBox.Show(worksheet.Cells["A1"].GetFormattedValue());

EXPLANATION

  1. Excel file will be loaded.
  2. Active worksheet will be selected.
  3. The value of first cell in MessageBox will be displayed.


This post first appeared on BUG FIXES AND CODING SOLUTIONS, please read the originial post: here

Share the post

Read XLS file by using the GemBox.Spreadsheet.NET component.

×

Subscribe to Bug Fixes And Coding Solutions

Get updates delivered right to your inbox!

Thank you for your subscription

×