PNG JPG BMP TIFF XLS
Aspose.Cells  for .NET

Split XLS Formats in C#

Native and high performance XLS splitter using server-side APIs, without the use of any software like Microsoft or Open Office, Adobe PDF.

How to Split XLS File Using C#

In order to split XLS file, we’ll use

Aspose.Cells for .NET

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

NuGet

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

Command


PM> Install-Package Aspose.Cells

Steps for Splitting XLS Files in C#

A basic splitter with

Aspose.Cells for .NET

APIs can be done with just few lines of code.

  • Load the XLS file with full path for splitting.
  • Iterate throug each sheet
  • Create a new Workbook class object
  • Copy the sheet via Copy method
  • Call the Save() method and pass the file name (full path) and SaveFormat.Xls as parameter.

System Requirements

Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.

  • 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 - Install from NuGet using the Download button above
 

Split XLS File - C#

 
  • 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.

    Online XLS Splitter Live Demos

    Other Supported Splitting Formats

    Using C#, One can also split large file into chunks of many other file formats including.

    ODS (OpenDocument Spreadsheet File)
    XLSB (Binary Excel Workbook File)
    XLSM (Spreadsheet File)
    XLSX (OOXML Excel File)