1. Products
  2.   Aspose.Cells
  3.   Text Converter

Excel from/to Text Converter for .NET

Utilize the Aspose.Cells Text Converter to convert Excel files to and from text formats.

Aspose.Cells Text Converter for .NET

The Aspose.Cells Text Converter for .NET supports conversion between Microsoft Excel file formats (such as XLS, XLSX, and XLSM) and various text formats (such as CSV, TSV, XML, and SQLSCRIPT). With this integration, developers can convert Excel files to text formats and vice versa.

How to Convert Excel to Text 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 Save() method, specifying the output file path (with the extension of the expected text format, or using SaveFormat to specify the text format) to produce the converted result.

Integrate Aspose.Cells Text Converter 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 Effective Conversion

  • Ensure all Excel files are saved appropriately prior to conversion.
  • Validate the output to confirm that the exported content is consistent with the original.
  • Leverage the latest version of Aspose.Cells to maximize conversion 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 the converter.

Frequently Asked Questions

What is Aspose.Cells Text Converter for .NET?

It is a comprehensive tool enabling developers to programmatically convert Excel files to and from text formats within any .NET application.

How does Aspose.Cells Text Converter differ from Aspose.Cells for .NET?

Aspose.Cells for .NET is a multifunctional library that allows extensive manipulation and creation of documents in different file formats. In contrast, the Text Converter is tailored for conversion between spreadsheets and text formats, providing a focused solution for document conversion tasks.

Which file formats can Aspose.Cells Text Converter for .NET handle in conversion?

It supports a broad spectrum of spreadsheet formats including XLS, XLSX, and XLSM, as well as text formats such as CSV, TSV, XML, and SQLSCRIPT. Detailed format compatibility information can be found here.

Is it possible to customize text generation settings?

Yes, the library provides the SaveOptions class and subclasses for specific file formats, allowing you to define various settings for conversion accordingly.

  

Support and Learning Resources