VIDEOS

How to Create New Spreadsheets in C#

Regan Pun
Regan Pun
April 19, 2025
Share:


This tutorial provides a comprehensive guide on creating new spreadsheets using Iron XL in C. It begins with the essential step of installing the Iron XL NuGet package if it's not already installed. The process involves setting up namespace imports and ensuring your license key is set. The creation of a new spreadsheet is accomplished with the workbook.create method, which initializes a workbook in memory. Users can specify the Excel file format using the Excel file format.xlsx argument. An alternative overload of the create method allows for additional options, such as setting a default file format. Once the workbook is initialized, a worksheet is created, named, and then saved to disk using the save as method. The newly created spreadsheet can be opened in Excel. Following these steps, users can programmatically create spreadsheets tailored to their needs. The tutorial concludes by encouraging users to subscribe for more tutorials and try out Iron XL by downloading the trial version. A link in the description offers further guidance.

Get stated with IronXL now.
green arrow pointer

Regan Pun
Software Engineer
Regan graduated from the University of Reading, with a BA in Electronic Engineering. Before joining Iron Software, his previous job roles had him laser-focused on single tasks; and what he most enjoys at Iron Software is the spectrum of work he gets to undertake, whether it’s adding value to sales, technical support, product development or marketing. He enjoys understanding the way developers are using the Iron Software library, and using that knowledge to continually improve documentation and develop the products.
< PREVIOUS
How to Edit Excel File in C#
NEXT >
How to Copy Cell Content in Excel in C#