Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
Read Merged Cells | C#

Program.cs:
C#
using System; using System.Collections.Generic; using System.Text; using Bytescout.Spreadsheet; namespace ReadingMergedCells { class Program { static void Main(string[] args) { // Create new Spreadsheet Spreadsheet document = new Spreadsheet(); document.LoadFromFile("Input.xls"); // Get worksheet by name Worksheet worksheet = document.Workbook.Worksheets["Sheet1"]; // Read merged cell Cell cell = worksheet.Cell("C12").MergedWithCell; // Read cell value Console.WriteLine(cell.Value); // Close document document.Close(); } } }