Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mustaddon committed Nov 7, 2021
1 parent c8ee931 commit e739c88
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Examples/Example.ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static void Example6()
{
var dataSet = new DataSet();

foreach (var i in Enumerable.Range(1, 3))
for (var i = 1; i <= 3; i++)
{
var table = new DataTable($"Table{i}");
dataSet.Tables.Add(table);
Expand All @@ -104,7 +104,7 @@ static void Example6()
table.Columns.Add($"Column {i}-2", typeof(int));
table.Columns.Add($"Column {i}-3", typeof(DateTime));

foreach (var x in Enumerable.Range(1, 10 * i))
for (var x = 1; x <= 10 * i; x++)
table.Rows.Add($"Text #{x}", x * 1000, DateTime.Now.AddDays(-x));
}

Expand Down Expand Up @@ -175,7 +175,7 @@ static void TestDataTable()
table.Columns.Add("Column #2", typeof(int));
table.Columns.Add("Column #3", typeof(DateTime));

foreach (var x in Enumerable.Range(1, 100))
for (var x = 1; x <= 100; x++)
table.Rows.Add($"Text #{x}", x * 1000, DateTime.Now.AddDays(-x));

var excel = table.ToExcel(s => s
Expand Down
Binary file modified Examples/example1.xlsx
Binary file not shown.
Binary file modified Examples/example2.xlsx
Binary file not shown.
Binary file modified Examples/example3.xlsx
Binary file not shown.
Binary file modified Examples/example4.xlsx
Binary file not shown.
Binary file modified Examples/example5.xlsx
Binary file not shown.
Binary file modified Examples/example6.xlsx
Binary file not shown.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Result:
```C#
var dataSet = new DataSet();

foreach (var i in Enumerable.Range(1, 3))
for (var i = 1; i <= 3; i++)
{
var table = new DataTable($"Table{i}");
dataSet.Tables.Add(table);
Expand All @@ -81,9 +81,9 @@ foreach (var i in Enumerable.Range(1, 3))
table.Columns.Add($"Column {i}-2", typeof(int));
table.Columns.Add($"Column {i}-3", typeof(DateTime));

foreach (var x in Enumerable.Range(1, 10 * i))
for (var x = 1; x <= 10 * i; x++)
table.Rows.Add($"Text #{x}", x * 1000, DateTime.Now.AddDays(-x));
}
}d

var excel = dataSet.ToExcel();
```
Expand Down

0 comments on commit e739c88

Please sign in to comment.