1. Products
  2.   Aspose.Cells
  3.   Spreadsheet Locker

Spreadsheet Locker for .NET

Utilize the Aspose.Cells Spreadsheet Locker to protect Excel files.

Aspose.Cells Spreadsheet Locker for .NET

The Aspose.Cells Spreadsheet Locker for .NET processes multiple Excel file types such as XLS, XLSX, XLSM, and XLSB. With this integration, developers can easily protect spreadsheet files and their data.

How to Lock a Spreadsheet File via .NET?

  • Reference Aspose.Cells in your .NET project.
  • Apply your licensing keys.
  • Instantiate the Workbook class by providing the Excel file path to its constructor.
  • Use the Protect() method of the Workbook or Worksheet class to protect the desired parts.
  • Use the Save() method to re-save the spreadsheet file with your specified protection.

Integrate Aspose.Cells Spreadsheet Locker for .NET

Acquire the necessary assembly files directly from the downloads page or use NuGet to install Aspose.Cells effortlessly into your workspace.


Best Practices for Spreadsheet Protection

  • Ensure all Excel files are saved appropriately prior to processing.
  • Validate the generated spreadsheet file to confirm that the protection has been applied correctly.
  • Leverage the latest version of Aspose.Cells to maximize performance and compatibility.

Common Issues and Resolutions

  • Error: ‘File not found’
  • Solution: Verify that the file path provided is accurate and accessible.
  • Error: ‘Unsupported file format’
  • Solution: Ensure that the input file format is supported by Aspose.Cells.

Frequently Asked Questions

What is Aspose.Cells Spreadsheet Locker for .NET?

It is a comprehensive tool enabling developers to programmatically protect Excel spreadsheets within any .NET application.

How does Aspose.Cells Spreadsheet Locker differ from Aspose.Cells for .NET?

Aspose.Cells for .NET is a multifunctional library allowing extensive manipulation and creation of spreadsheet documents. In contrast, the Spreadsheet Locker is tailored for protecting existing spreadsheets, providing a focused solution for protection tasks.

Which file formats can Aspose.Cells Spreadsheet Locker for .NET handle?

It supports a broad spectrum of spreadsheet formats that support protection settings, including XLS, XLSX, XLSB, XLSM, ODS, and more. Detailed format compatibility information can be found here.

  

Support and Learning Resources