Skip to content

Commit a0aa545

Browse files
Update v2.9
1 parent 08e68ae commit a0aa545

File tree

683 files changed

+2473
-2000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

683 files changed

+2473
-2000
lines changed

Changelog.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Change Log
22

3+
## v2.9.0
4+
5+
---
6+
Release Date: **18.04.2021**
7+
8+
- Introduced library version for .NET Standard 2.0 (and assigned demos)
9+
- Updated project structure (two projects for .NET >=4.5 and two for .NET Standard 2.0)
10+
- Added function SetStyle in the Worksheet class
11+
- Added demo for the new SetStyle function
12+
- Changed behavior of empty cells. They are now not string but implicit numeric cells
13+
- Added new function ResolveEnclosedAddresses in Cell.Range class
14+
- Added new function GetAddressScope in Cell class
15+
- Fixed the validation of cell addresses (single cell)
16+
- Introduced several generalizations of Lists
17+
18+
Thanks to the following people for their contributions in NanoXLSX, that are based on the above changes:
19+
20+
- Shobb for the introduction of IReadOnlyList (generalizations)
21+
- John Lenz for the port to .NET Standard
22+
- Ned Marinov for the proposal of the new SetStyle function
23+
324
## v2.8.1
425

526
---
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net5.0</TargetFramework>
6+
<RootNamespace>PicoXLSX</RootNamespace>
7+
<AssemblyName>PicoXLSX.Demo</AssemblyName>
8+
<Copyright>Copyright Raphael Stoeckli © 2021</Copyright>
9+
<RepositoryUrl>https://github.com/rabanti-github/PicoXLSX.git</RepositoryUrl>
10+
<PackageProjectUrl>https://github.com/rabanti-github/PicoXLSX</PackageProjectUrl>
11+
<AssemblyVersion>2.9.0.0</AssemblyVersion>
12+
<FileVersion>2.9.0.0</FileVersion>
13+
<Version>2.9.0</Version>
14+
<Description>Demo Library showing the use of PicoXLSX, a library to generate Microsoft Excel files (XLSX) in an easy and native way</Description>
15+
<StartupObject>Demo.Program</StartupObject>
16+
</PropertyGroup>
17+
18+
<ItemGroup>
19+
<Compile Include="..\Demo\Program.cs" Link="Program.cs" />
20+
</ItemGroup>
21+
22+
<ItemGroup>
23+
<ProjectReference Include="..\PicoXLSX .NET Standard\PicoXLSX .NET Standard.csproj" />
24+
</ItemGroup>
25+
26+
</Project>

Demo/Program.cs

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* PicoXLSX is a small .NET library to generate XLSX (Microsoft Excel 2007 or newer) files in an easy and native way
3-
* Copyright Raphael Stoeckli © 2020
3+
* Copyright Raphael Stoeckli © 2021
44
* This library is licensed under the MIT License.
55
* You find a copy of the license in project folder or on: http://opensource.org/licenses/MIT
66
*/
@@ -35,6 +35,7 @@ static void Main(string[] args)
3535
Demo8();
3636
Demo9();
3737
Demo10();
38+
Demo11();
3839

3940
/* ### PERFORMANCE TESTS ### */
4041
// # Use tests in this section to test the performance of PicoXLSX
@@ -355,7 +356,7 @@ private static void Demo8()
355356
workbook.CurrentWorksheet.AddNextCell("Test2"); // Add cell A1
356357
Cell.Range range = new Cell.Range(new Cell.Address(1, 1), new Cell.Address(3, 3)); // Create a cell range for the selection B2:D4
357358
workbook.CurrentWorksheet.SetSelectedCells(range); // Set the selection to the range
358-
workbook.AddWorksheet("Sheet2", true); // Create new worksheet with already existing name; The name will be changed to Sheet21 due to auto-sanitizing (appending of 1)
359+
workbook.AddWorksheet("Sheet2", true); // Create new worksheet with already existing name; The name will be changed to Sheet21 due to auto-sanitizing (appending of 1)
359360
workbook.CurrentWorksheet.AddNextCell("Test3"); // Add cell A1
360361
workbook.CurrentWorksheet.SetSelectedCells(new Cell.Address(2, 2), new Cell.Address(4, 4)); // Set the selection to the range C3:E5
361362
workbook.SetSelectedWorksheet(1); // Set the second Tab as selected (zero-based: 1)
@@ -451,5 +452,26 @@ private static void Demo10()
451452
wb.Save(); // Save the workbook
452453
}
453454

455+
/// <summary>
456+
/// This demo shows the usage of the SetStyle methods on worksheets
457+
/// </summary>
458+
private static void Demo11()
459+
{
460+
Workbook wb = new Workbook("demo11.xlsx", "setStyles"); // Create a new workbook
461+
462+
Style style = new Style(); // Create a new style
463+
style.Append(Style.BasicStyles.ColorizedBackground("FF0000")); // Append a visible style component
464+
465+
wb.CurrentWorksheet.AddCell("Test", "C3", Style.BasicStyles.Bold); // Define a cell with a style (will be replaced)
466+
467+
wb.CurrentWorksheet.SetStyle("A1", style); // Set style based on a string address
468+
wb.CurrentWorksheet.SetStyle("A3:B6", style); // Set style based on a string address range
469+
wb.CurrentWorksheet.SetStyle(new Cell.Address(0, 7), style); // Set style based on a address object
470+
wb.CurrentWorksheet.SetStyle(new Cell.Range(new Cell.Address("C1"), new Cell.Address(4, 8)), style); // Set style based on a range object (overwrites style on C3)
471+
wb.CurrentWorksheet.SetStyle(new Cell.Address("F6"), new Cell.Address("F10"), style); // Set style based on a two address objects as range
472+
473+
wb.Save(); // Save the workbook
474+
}
475+
454476
}
455477
}

Demo/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("Demo")]
13-
[assembly: AssemblyCopyright("Copyright Raphael Stoeckli © 2020")]
13+
[assembly: AssemblyCopyright("Copyright Raphael Stoeckli © 2021")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

Demo/Testing/Performance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* PicoXLSX is a small .NET library to generate XLSX (Microsoft Excel 2007 or newer) files in an easy and native way
3-
* Copyright Raphael Stoeckli © 2020
3+
* Copyright Raphael Stoeckli © 2021
44
* This library is licensed under the MIT License.
55
* You find a copy of the license in project folder or on: http://opensource.org/licenses/MIT
66
*/

Demo/Testing/TypeTesting.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* PicoXLSX is a small .NET library to generate XLSX (Microsoft Excel 2007 or newer) files in an easy and native way
3-
* Copyright Raphael Stoeckli © 2020
3+
* Copyright Raphael Stoeckli © 2021
44
* This library is licensed under the MIT License.
55
* You find a copy of the license in project folder or on: http://opensource.org/licenses/MIT
66
*/

Demo/Testing/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* PicoXLSX is a small .NET library to generate XLSX (Microsoft Excel 2007 or newer) files in an easy and native way
3-
* Copyright Raphael Stoeckli © 2020
3+
* Copyright Raphael Stoeckli © 2021
44
* This library is licensed under the MIT License.
55
* You find a copy of the license in project folder or on: http://opensource.org/licenses/MIT
66
*/

Documentation/CodeDocumentation.shfbproj

Lines changed: 51 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<RootNamespace>Documentation</RootNamespace>
1414
<Name>Documentation</Name>
1515
<!-- SHFB properties -->
16-
<FrameworkVersion>.NET Framework 4.5.1</FrameworkVersion>
16+
<FrameworkVersion>.NET Framework 4.5.2</FrameworkVersion>
1717
<OutputPath>..\docs\</OutputPath>
1818
<HtmlHelpName>Documentation</HtmlHelpName>
1919
<Language>en-US</Language>
@@ -41,26 +41,39 @@
4141
<VisibleItems>InheritedMembers, InheritedFrameworkMembers, Internals, Privates, Protected, SealedProtected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable</VisibleItems>
4242
<FeedbackEMailAddress>
4343
</FeedbackEMailAddress>
44-
<CopyrightText>Copyright Raphael Stoeckli &amp;#169%3b 2020</CopyrightText>
44+
<CopyrightText>Copyright Raphael Stoeckli &amp;#169%3b 2021</CopyrightText>
4545
<SaveComponentCacheCapacity>100</SaveComponentCacheCapacity>
4646
<WarnOnMissingSourceContext>False</WarnOnMissingSourceContext>
47-
<ProjectSummary>&amp;lt%3bp&amp;gt%3bPicoXLSX is a small .NET / C# library to create XLSX files %28Microsoft Excel 2007 or newer%29 in an easy and native way&amp;lt%3b/p&amp;gt%3b
48-
&amp;lt%3bul&amp;gt%3b
49-
&amp;lt%3bli&amp;gt%3b&amp;lt%3bstrong&amp;gt%3bNo dependencies&amp;lt%3b/strong&amp;gt%3b %28%2a&amp;lt%3b/li&amp;gt%3b
50-
&amp;lt%3bli&amp;gt%3bNo need for an installation of Microsoft Office&amp;lt%3b/li&amp;gt%3b
51-
&amp;lt%3bli&amp;gt%3bNo need for Office interop libraries&amp;lt%3b/li&amp;gt%3b
52-
&amp;lt%3bli&amp;gt%3bNo need for 3rd party libraries&amp;lt%3b/li&amp;gt%3b
53-
&amp;lt%3bli&amp;gt%3bNo need for an installation of the Microsoft Open Office XML SDK %28OOXML%29&amp;lt%3b/li&amp;gt%3b
54-
&amp;lt%3b/ul&amp;gt%3b
47+
<ProjectSummary>&amp;lt%3bp&amp;gt%3bPicoXLSX is a small .NET / C# library to create XLSX files %28Microsoft Excel 2007 or newer%29 in an easy and native way&amp;lt%3b/p&amp;gt%3b
48+
&amp;lt%3bul&amp;gt%3b
49+
&amp;lt%3bli&amp;gt%3b&amp;lt%3bstrong&amp;gt%3bMinimum of dependencies&amp;lt%3b/strong&amp;gt%3b %28%2a&amp;lt%3b/li&amp;gt%3b
50+
&amp;lt%3bli&amp;gt%3bNo need for an installation of Microsoft Office&amp;lt%3b/li&amp;gt%3b
51+
&amp;lt%3bli&amp;gt%3bNo need for Office interop libraries&amp;lt%3b/li&amp;gt%3b
52+
&amp;lt%3bli&amp;gt%3bNo need for 3rd party libraries&amp;lt%3b/li&amp;gt%3b
53+
&amp;lt%3bli&amp;gt%3bNo need for an installation of the Microsoft Open Office XML SDK %28OOXML%29&amp;lt%3b/li&amp;gt%3b
54+
&amp;lt%3b/ul&amp;gt%3b
5555
&amp;lt%3bp&amp;gt%3bSee the &amp;lt%3bstrong&amp;gt%3b&amp;lt%3ba href=&amp;quot%3bhttps://github.com/rabanti-github/PicoXLSX/blob/master/Changelog.md&amp;quot%3b&amp;gt%3bChange Log&amp;lt%3b/a&amp;gt%3b&amp;lt%3b/strong&amp;gt%3b for recent updates.&amp;lt%3b/p&amp;gt%3b
5656
&amp;lt%3bh2&amp;gt%3bRequirements&amp;lt%3b/h2&amp;gt%3b
57-
58-
PicoXLSX was created with .NET version 4.5. Newer versions like 4.6.1 are working and tested. Older versions like 3.5 and 4.0 may also work with minor or no changes. However, this was not tested yet.
59-
&amp;lt%3bbr/&amp;gt%3b&amp;lt%3bbr/&amp;gt%3b%2a%29The only requirement to compile the library besides .NET is the assembly &amp;lt%3bb&amp;gt%3bWindowsBase&amp;lt%3b/b&amp;gt%3b. This assembly is a &amp;lt%3bb&amp;gt%3bstandard component in all Microsoft Windows systems&amp;lt%3b/b&amp;gt%3b %28except Windows RT systems%29. If your IDE of choice supports referencing assemblies from the Global Assembly Cache %28&amp;lt%3bb&amp;gt%3bGAC&amp;lt%3b/b&amp;gt%3b%29 of Windows, select WindowsBase from there. If you want so select the DLL manually and Microsoft Visual Studio is installed on your system, the DLL can be found most likely under “c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll”, according to this &amp;lt%3ba href=&amp;quot%3bhttps://blogs.msdn.com/b/dmahugh/archive/2006/12/14/finding-windowsbase-dll.aspx&amp;quot%3b&amp;gt%3bMSDN Blog entry&amp;lt%3b/a&amp;gt%3b. Otherwise you find it in the GAC, under “c:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase”
60-
&amp;lt%3bbr/&amp;gt%3b&amp;lt%3bbr/&amp;gt%3b
61-
62-
If you want to compile the documentation project %28folder: Documentation%3b project file: shfbproj%29, you need also the &amp;lt%3bstrong&amp;gt%3b&amp;lt%3ba href=&amp;quot%3bhttps://github.com/EWSoftware/SHFB&amp;quot%3b&amp;gt%3bSandcastle Help File Builder %28SHFB%29&amp;lt%3b/a&amp;gt%3b&amp;lt%3b/strong&amp;gt%3b. It is also freely available. But you don’t need the documentation project to build the PicoXLSX library.
57+
58+
PicoXLSX was created with .NET version 4.5. Newer versions like 4.6 are working and tested. Furthermore, .NET Standard 2.0 is supported since v1.6. Older versions of.NET like 3.5 and 4.0 may also work with minor changes. Some functions introduced in .NET 4.5 were used and must be adapted in this case.
59+
&amp;lt%3bbr/&amp;gt%3b
60+
&amp;lt%3bh3&amp;gt%3b.NET 4.5 or newer&amp;lt%3b/h3&amp;gt%3b
61+
%2a%29The only requirement to compile the library besides .NET %28v4.5 or newer%29 is the assembly &amp;lt%3bb&amp;gt%3bWindowsBase&amp;lt%3b/b&amp;gt%3b, as well as &amp;lt%3bb&amp;gt%3bSystem.IO.Compression&amp;lt%3b/b&amp;gt%3b. These assemblies are &amp;lt%3bb&amp;gt%3bstandard components in all Microsoft Windows systems&amp;lt%3b/b&amp;gt%3b %28except Windows RT systems%29. If your IDE of choice supports referencing assemblies from the Global Assembly Cache %28&amp;lt%3bb&amp;gt%3bGAC&amp;lt%3b/b&amp;gt%3b%29 of Windows, select WindowsBase and Compression from there. If you want so select the DLLs manually and Microsoft Visual Studio is installed on your system, the DLL of WindowsBase can be found most likely under “c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll”, as well as System.IO.Compression under &amp;quot%3bc:\Program Files %28x86%29\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.IO.Compression.dll&amp;quot%3b. Otherwise you find them in the GAC, under “c:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase” and &amp;quot%3bc:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.IO.Compression&amp;quot%3b
62+
&amp;lt%3bbr/&amp;gt%3b
63+
The NuGet package &amp;lt%3bb&amp;gt%3bdoes not require dependencies&amp;lt%3b/b&amp;gt%3b
64+
&amp;lt%3bbr/&amp;gt%3b
65+
66+
&amp;lt%3bh3&amp;gt%3b.NET Standard&amp;lt%3b/h3&amp;gt%3b
67+
.NET Standard v2.0 resolves the dependency System.IO.Compression automatically, using NuGet and does not rely anymore on WindowsBase in the development environment. In contrast to the .NET &amp;amp%3bgt%3b=4.5 version, &amp;lt%3bb&amp;gt%3bno manually added dependencies necessary&amp;lt%3b/b&amp;gt%3b %28as assembly references%29 to compile the library.&amp;lt%3bbr/&amp;gt%3b
68+
69+
Please note that the demo project of the .NET Standard version will not work in Visual Studio 2017. To get the build working, unload the demo project of the .NET Standard version.
70+
&amp;lt%3bbr/&amp;gt%3b
71+
72+
&amp;lt%3bh3&amp;gt%3bDocumentation project&amp;lt%3b/h3&amp;gt%3b
73+
If you want to compile the documentation project %28folder: Documentation%3b project file: shfbproj%29, you need also the &amp;lt%3bstrong&amp;gt%3b&amp;lt%3ba href=&amp;quot%3bhttps://github.com/EWSoftware/SHFB&amp;quot%3b&amp;gt%3bSandcastle Help File Builder %28SHFB%29&amp;lt%3b/a&amp;gt%3b&amp;lt%3b/strong&amp;gt%3b. It is also freely available. But you don’t need the documentation project to build the PicoXLSX library.&amp;lt%3bbr/&amp;gt%3b
74+
The .NET version of the documentation may vary, based on the installation. If v4.5 is not available, upgrade to target to a newer version, like v4.6
6375
&amp;lt%3bbr/&amp;gt%3b
76+
6477
&amp;lt%3bh2&amp;gt%3bInstallation&amp;lt%3b/h2&amp;gt%3b
6578

6679
&amp;lt%3bh3&amp;gt%3bUsing NuGet&amp;lt%3b/h3&amp;gt%3b
@@ -71,33 +84,33 @@ By Package Manager:&amp;lt%3bbr&amp;gt%3b
7184
&amp;lt%3bbr&amp;gt%3b
7285
By .NET CLI:&amp;lt%3bbr&amp;gt%3b
7386
&amp;lt%3bpre&amp;gt%3b&amp;lt%3bcode&amp;gt%3bdotnet add package PicoXLSX&amp;lt%3b/code&amp;gt%3b&amp;lt%3b/pre&amp;gt%3b
74-
75-
&amp;lt%3bh3&amp;gt%3bAs DLL&amp;lt%3b/h3&amp;gt%3b
7687

77-
Simply place the PicoXLSX DLL into your .NET project and add a reference to it. Please keep in mind that the .NET version of your solution must match with the runtime version of the PicoXLSX DLL %28currently compiled with 4.5%29.
88+
&amp;lt%3bh3&amp;gt%3bAs DLL&amp;lt%3b/h3&amp;gt%3b
89+
90+
Simply place the PicoXLSX DLL into your .NET project and add a reference to it. Please keep in mind that the .NET version of your solution must match with the runtime version of the PicoXLSX DLL %28currently compiled with 4.5 and .NET Standard 2.0%29.
7891

7992
&amp;lt%3bh3&amp;gt%3bAs source files&amp;lt%3b/h3&amp;gt%3b
80-
93+
8194
Place all .CS files from the PicoXLSX source folder into your project. You can place them into a sub-folder if you wish. The files contains definitions for workbooks, worksheets, cells, styles, meta-data, low level methods and exceptions.
82-
83-
95+
96+
8497
&amp;lt%3bh2&amp;gt%3bUsage %28Quick Start%29&amp;lt%3b/h2&amp;gt%3b
85-
86-
&amp;lt%3bh2&amp;gt%3b&amp;lt%3ba id=&amp;quot%3bQuick_Start_shortened_syntax_46&amp;quot%3b&amp;gt%3b&amp;lt%3b/a&amp;gt%3bQuick Start %28shortened syntax%29&amp;lt%3b/h2&amp;gt%3b
87-
&amp;lt%3bpre&amp;gt%3b&amp;lt%3bcode&amp;gt%3b Workbook workbook = new Workbook%28&amp;amp%3bquot%3bmyWorkbook.xlsx&amp;amp%3bquot%3b, &amp;amp%3bquot%3bSheet1&amp;amp%3bquot%3b%29%3b // Create new workbook with a worksheet called Sheet1
88-
workbook.WS.Value%28&amp;amp%3bquot%3bSome Data&amp;amp%3bquot%3b%29%3b // Add cell A1
89-
workbook.WS.Formula%28&amp;amp%3bquot%3b=A1&amp;amp%3bquot%3b%29%3b // Add formula to cell B1
90-
workbook.WS.Down%28%29%3b // Go to row 2
91-
workbook.WS.Value%28DateTime.Now, Style.BasicStyles.Bold%29%3b // Add formatted value to cell A2
92-
workbook.Save%28%29%3b // Save the workbook as myWorkbook.xlsx
93-
&amp;lt%3b/code&amp;gt%3b&amp;lt%3b/pre&amp;gt%3b
94-
&amp;lt%3bh2&amp;gt%3b&amp;lt%3ba id=&amp;quot%3bQuick_Start_regular_syntax_56&amp;quot%3b&amp;gt%3b&amp;lt%3b/a&amp;gt%3bQuick Start %28regular syntax%29&amp;lt%3b/h2&amp;gt%3b
95-
&amp;lt%3bpre&amp;gt%3b&amp;lt%3bcode&amp;gt%3b Workbook workbook = new Workbook%28&amp;amp%3bquot%3bmyWorkbook.xlsx&amp;amp%3bquot%3b, &amp;amp%3bquot%3bSheet1&amp;amp%3bquot%3b%29%3b // Create new workbook with a worksheet called Sheet1
96-
workbook.CurrentWorksheet.AddNextCell%28&amp;amp%3bquot%3bSome Data&amp;amp%3bquot%3b%29%3b // Add cell A1
97-
workbook.CurrentWorksheet.AddNextCell%2842%29%3b // Add cell B1
98-
workbook.CurrentWorksheet.GoToNextRow%28%29%3b // Go to row 2
99-
workbook.CurrentWorksheet.AddNextCell%28DateTime.Now%29%3b // Add cell A2
100-
workbook.Save%28%29%3b // Save the workbook as myWorkbook.xlsx
98+
99+
&amp;lt%3bh2&amp;gt%3b&amp;lt%3ba id=&amp;quot%3bQuick_Start_shortened_syntax_46&amp;quot%3b&amp;gt%3b&amp;lt%3b/a&amp;gt%3bQuick Start %28shortened syntax%29&amp;lt%3b/h2&amp;gt%3b
100+
&amp;lt%3bpre&amp;gt%3b&amp;lt%3bcode&amp;gt%3b Workbook workbook = new Workbook%28&amp;amp%3bquot%3bmyWorkbook.xlsx&amp;amp%3bquot%3b, &amp;amp%3bquot%3bSheet1&amp;amp%3bquot%3b%29%3b // Create new workbook with a worksheet called Sheet1
101+
workbook.WS.Value%28&amp;amp%3bquot%3bSome Data&amp;amp%3bquot%3b%29%3b // Add cell A1
102+
workbook.WS.Formula%28&amp;amp%3bquot%3b=A1&amp;amp%3bquot%3b%29%3b // Add formula to cell B1
103+
workbook.WS.Down%28%29%3b // Go to row 2
104+
workbook.WS.Value%28DateTime.Now, Style.BasicStyles.Bold%29%3b // Add formatted value to cell A2
105+
workbook.Save%28%29%3b // Save the workbook as myWorkbook.xlsx
106+
&amp;lt%3b/code&amp;gt%3b&amp;lt%3b/pre&amp;gt%3b
107+
&amp;lt%3bh2&amp;gt%3b&amp;lt%3ba id=&amp;quot%3bQuick_Start_regular_syntax_56&amp;quot%3b&amp;gt%3b&amp;lt%3b/a&amp;gt%3bQuick Start %28regular syntax%29&amp;lt%3b/h2&amp;gt%3b
108+
&amp;lt%3bpre&amp;gt%3b&amp;lt%3bcode&amp;gt%3b Workbook workbook = new Workbook%28&amp;amp%3bquot%3bmyWorkbook.xlsx&amp;amp%3bquot%3b, &amp;amp%3bquot%3bSheet1&amp;amp%3bquot%3b%29%3b // Create new workbook with a worksheet called Sheet1
109+
workbook.CurrentWorksheet.AddNextCell%28&amp;amp%3bquot%3bSome Data&amp;amp%3bquot%3b%29%3b // Add cell A1
110+
workbook.CurrentWorksheet.AddNextCell%2842%29%3b // Add cell B1
111+
workbook.CurrentWorksheet.GoToNextRow%28%29%3b // Go to row 2
112+
workbook.CurrentWorksheet.AddNextCell%28DateTime.Now%29%3b // Add cell A2
113+
workbook.Save%28%29%3b // Save the workbook as myWorkbook.xlsx
101114
&amp;lt%3b/code&amp;gt%3b&amp;lt%3b/pre&amp;gt%3b</ProjectSummary>
102115
<TransformComponentArguments>
103116
<Argument Key="logoFile" Value="PicoXLSX.png" />

0 commit comments

Comments
 (0)