IRONSOFTWAREHOME

IronXL Support for AWS Lambda Function with .NET Core

Curtis Chau
Curtis Chau
Updated: July 6, 2026

IronXL fully supports AWS Lambda Function for .NET Standard 2.0 Libraries, Core applications, .NET 8, and .NET 10 projects.

To add AWS Toolkit for Visual Studio, follow this link: Using the AWS Lambda Templates in the AWS Toolkit for Visual Studio.

Installing AWS Toolkit into Visual Studio enables you to create an AWS Lambda Function Project. You can learn how to create an AWS Lambda Function Project using Visual Studio through this link.

Working AWS Lambda Function Code Example

After creating a new AWS Lambda Function project, you can try this code snippet:

using System;
using Amazon.Lambda.Core;
using IronXL;

// Ensure this attribute targets your Lambda function
[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))]

namespace AWSLambdaIronXL
{
    public class Function
    {
        /// <summary>
        /// A simple function that takes a string input and processes it using IronXL.
        /// This specific example creates a new Excel workbook and fills cells with labeled values.
        /// </summary>
        /// <param name="input">The string input for the function</param>
        /// <param name="context">The Lambda context</param>
        /// <returns>A Base64 string representation of the Excel file</returns>
        public string FunctionHandler(string input, ILambdaContext context)
        {
            // Create a new workbook with ExcelFileFormat.XLS
            WorkBook workBook = WorkBook.Create(ExcelFileFormat.XLS);
            
            // Create a new worksheet named "new_sheet"
            var newSheet = workBook.CreateWorkSheet("new_sheet");
            
            string columnNames = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            foreach (char col in columnNames)
            {
                for (int row = 1; row <= 50; row++)
                {
                    // Construct cell name and fill it with data
                    var cellName = $"{col}{row}";
                    newSheet[cellName].Value = $"Cell: {cellName}";
                }
            }

            // Convert the entire workbook to a byte array and then to a Base64 string
            return Convert.ToBase64String(workBook.ToByteArray());
        }
    }
}

IronXL NuGet Packages available for deployments are documented in our IronXL NuGet installation guide.

Frequently Asked Questions

What versions of .NET does IronXL support for AWS Lambda functions?

IronXL supports AWS Lambda Function for .NET Standard 2.0 Libraries, Core applications, .NET 8, and .NET 10 projects.

How can I start an AWS Lambda project using IronXL?

To start an AWS Lambda project with IronXL, first install the AWS Toolkit into Visual Studio to enable project creation. Then, follow the AWS Lambda Templates in the AWS Toolkit for Visual Studio for guidance.

Is there a code example for using IronXL with AWS Lambda?

Yes, the provided code example demonstrates creating a new Excel workbook, filling cells with data, and returning a Base64 string using IronXL in an AWS Lambda function.

Can IronXL create Excel files within an AWS Lambda function?

Yes, IronXL can create Excel files within an AWS Lambda function by using its features to construct Excel workbooks and worksheets programmatically.

How do I convert an Excel workbook to a Base64 string with IronXL?

You can convert an Excel workbook to a Base64 string in IronXL by first converting the workbook to a byte array and then using Convert.ToBase64String method.

What is the purpose of the 'FunctionHandler' method in IronXL's AWS Lambda example?

The 'FunctionHandler' method in the IronXL AWS Lambda example processes a string input, generates an Excel workbook by filling cells with labeled values, and returns the workbook as a Base64 string.

What AWS resource can I use for detailed instructions on deploying an IronXL project in AWS Lambda?

Detailed instructions for deploying an IronXL project as an AWS Lambda function can be found in the AWS documentation under AWS Lambda Templates in the AWS Toolkit for Visual Studio.

Where can I find the IronXL NuGet installation guide?

The IronXL NuGet installation guide is available under the documentation section on Iron Software's website, specifically in the IronXL NuGet installation guide.

How do I create a new worksheet in an Excel workbook using IronXL?

In IronXL, you can create a new worksheet in an Excel workbook using the CreateWorkSheet method. For example, `var newSheet = workBook.CreateWorkSheet("new_sheet");` creates a sheet named 'new_sheet'.

What is the benefit of using IronXL with AWS Lambda?

Using IronXL with AWS Lambda allows seamless integration of .NET applications with AWS cloud services, enabling programmatic creation and manipulation of Excel files in serverless environments.

Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...
Read More

Ready to Get Started?

Nuget Downloads 2,237,574Version:2026.9just released

Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.9

PM > Install-Package IronXL.Excel
nuget.org/packages/IronXL.Excel/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronXL"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.9

  1. Download and unzip IronXL to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronXL.dll"

Licenses from $999

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required