VIDEOS

How to Load Existing Spreadsheets in C#

Regan Pun
Regan Pun
April 19, 2025
Share:


In this comprehensive tutorial, we explore how to load existing Excel spreadsheets and CSV files into a C application using the Iron XL library. To begin, ensure the Iron XL Nougat package is installed in your project. This can be done easily via the Nougat package manager. Start by importing the INXL namespace into your program CS file and setting your Iron XL license key. Iron XL supports a variety of Excel formats including XLSX, XLS, XLSM, and XLTX. Utilize the workbook.load method to load Excel files, such as 'sample.xlx', into memory. CSV files can also be loaded directly using the workbook.loadCSV method, which reads 'sample.csv' and loads its contents into a new workbook. For data in a dataset object, create a new workbook with workbook.create and load worksheets from the dataset using workbook.loadWorksheetsFromDataSet. This integration facilitates powerful data manipulation and analysis within your C application. By following these outlined steps, you can effectively manage existing spreadsheets and CSV files in your C projects, leveraging the capabilities of Iron XL. We hope this tutorial is beneficial. Subscribe for more informative tutorials from Myer Software and sign up for Iron XL's trial to experience its capabilities firsthand.

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 Use Math Functions in Excel
NEXT >
How to Create Hyperlinks in Excel Using C#