Aspose.Cells  for .NET

Add Text Watermark to XLSX via C#

Build your own .NET apps to watermark XLSX files using server-side APIs.

How to Watermark XLSX File Using C#

In order to watermark XLSX file, we’ll use

Aspose.Cells for .NET

API which is a feature-rich, powerful and easy to use document manipulation API for C# platform. Open


package manager, search for Aspose.Cells and install. You may also use the following command from the Package Manager Console.


PM> Install-Package Aspose.Cells

Steps to Add Watermark to XLSX via C#

You need the


to try the following workflow in your own environment.

  • Create a new Workbook object
  • Select Worksheet via its index
  • Create a Shape and use its AddTextEffect function
  • Get the fill format of the word art
  • Make the line invisible
  • Save workbook in XLSX format

System Requirements

Aspose.Cells for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Mono or Xamarin Platforms.
  • Development environment like Microsoft Visual Studio.
  • Add reference to the Aspose.Cells for .NET DLL in your project.

Add Watermark to XLSX - C#

  • About Aspose.Cells for .NET API

    Aspose.Cells API can be used to create, edit, convert and render Microsoft Excel formats to different formats. Moreover, it can be used for comprehensive charting, scalable reporting and reliable calculations within software applications. Aspose.Cells is a standalone API and it does not require any software like Microsoft or OpenOffice.

    Watermark XLSX via Online App

    Other Supported Watermarking Formats

    Using C#, one can easily watermark different formats including.

    ODS (OpenDocument Spreadsheet File)
    XLS (Excel Binary Format)
    XLSB (Binary Excel Workbook File)
    XLSM (Spreadsheet File)