diff --git a/ClosedXML_Sandbox/ClosedXML_Sandbox.csproj b/ClosedXML_Sandbox/ClosedXML_Sandbox.csproj index 81bf383..3581c95 100644 --- a/ClosedXML_Sandbox/ClosedXML_Sandbox.csproj +++ b/ClosedXML_Sandbox/ClosedXML_Sandbox.csproj @@ -63,9 +63,6 @@ - - PreserveNewest - diff --git a/ClosedXML_Sandbox/Program.cs b/ClosedXML_Sandbox/Program.cs index ed0202a..0cb47d1 100644 --- a/ClosedXML_Sandbox/Program.cs +++ b/ClosedXML_Sandbox/Program.cs @@ -1,6 +1,4 @@ -using ClosedXML.Excel; -using System.Linq; -using System; +using System; namespace ClosedXML_Sandbox { @@ -8,26 +6,10 @@ { private static void Main(string[] args) { - var path = "tmp.xlsx"; - using (var workbook = new XLWorkbook(path)) - { - var ws1 = workbook.Worksheets.Last(); - - int rowCount = 20; //example - //first row headers - for (int i = 1; i < rowCount; i++) - { - var row = ws1.Row(i); - var values = row.Cells().Select(c => c.Value).ToArray(); - IXLCell cell = row.Cell("E"); //.Cell(5); - bool isEmpty = cell.IsEmpty(); //always empty on this column, but in original have 6 lines - var val = cell.Value; //cell. - //vals += val + Environment.NewLine; - } - } + PerformanceRunner.TimeAction(PerformanceRunner.RunInsertTable); Console.WriteLine("Press any key to continue"); Console.ReadKey(); } } -} +} \ No newline at end of file