mirror of
https://gitee.com/dotnetchina/MiniExcel.git
synced 2024-12-02 03:47:41 +08:00
93aee8d5d9
drafts\【CloseXml】Read.linq drafts\【ClosedXml】Create by IEnumerable.linq drafts\【ClosedXml】Read.linq drafts\【EPPlus】Create by IEnumerable.linq drafts\【OpenXmlSDK】Create by IEnumerable.linq drafts\【OpenXmlSDK】Read.linq
34 lines
1.3 KiB
C#
34 lines
1.3 KiB
C#
<Query Kind="Program">
|
|
<NuGetReference>ClosedXML</NuGetReference>
|
|
<NuGetReference>Dapper</NuGetReference>
|
|
<NuGetReference>MiniExcel</NuGetReference>
|
|
<NuGetReference>Newtonsoft.Json</NuGetReference>
|
|
<NuGetReference>System.Data.SqlClient</NuGetReference>
|
|
<Namespace>MiniExcelLibs</Namespace>
|
|
<Namespace>Newtonsoft.Json</Namespace>
|
|
<Namespace>ClosedXML.Excel</Namespace>
|
|
<RemoveNamespace>System.Data</RemoveNamespace>
|
|
<RemoveNamespace>System.Diagnostics</RemoveNamespace>
|
|
<RemoveNamespace>System.Linq.Expressions</RemoveNamespace>
|
|
<RemoveNamespace>System.Text</RemoveNamespace>
|
|
<RemoveNamespace>System.Text.RegularExpressions</RemoveNamespace>
|
|
<RemoveNamespace>System.Threading</RemoveNamespace>
|
|
<RemoveNamespace>System.Transactions</RemoveNamespace>
|
|
<RemoveNamespace>System.Xml</RemoveNamespace>
|
|
<RemoveNamespace>System.Xml.Linq</RemoveNamespace>
|
|
<RemoveNamespace>System.Xml.XPath</RemoveNamespace>
|
|
</Query>
|
|
|
|
void Main()
|
|
{
|
|
var values = Enumerable.Range(1, 1048575).Select((s, index) => new { index, value = Guid.NewGuid() }).ToList();
|
|
using (var workbook = new XLWorkbook())
|
|
{
|
|
var ws = workbook.Worksheets.Add("Sample Sheet");
|
|
ws.Cell(1, 1).InsertTable(values);
|
|
workbook.SaveAs("HelloWorld.xlsx");
|
|
}
|
|
}
|
|
|
|
// You can define other methods, fields, classes and namespaces here
|