Last active
October 23, 2023 06:06
Revisions
-
fileformat-cells-gists revised this gist
Oct 23, 2023 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ using (Workbook wb = new Workbook(filePath)) // Load existing spreadsheet/workbook file. { Worksheet firstSheet = wb.Worksheets[0]; // Load first worksheet within workbook. Cell cellA1 = firstSheet.Cells["A1"]; // Get A1 cell object within cellA1 variable. Console.WriteLine(cellA1.GetDataType()); // Output cellA1 data type. string value = cellA1.GetValue(); // Get value within cell A1. Console.WriteLine(value); // Output the value stored in cell A1 } -
fileformat-cells-gists created this gist
Oct 23, 2023 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ using (Workbook wb = new Workbook(filePath)) { Worksheet firstSheet = wb.Worksheets[0]; Cell cellA1 = firstSheet.Cells["A1"]; Console.WriteLine(cellA1.GetDataType()); string value = cellA1.GetValue(); Console.WriteLine(value); // Output the value stored in cell A1 }