In this simple topic, you’ll learn how to convert XLS to SVG with NET REST API. We will develop an XLS to SVG converter with C# Low Code API by following the detailed and lucid steps mentioned in the following section. The developed application can be integrated with any .NET application supported in macOS, Linux, or Windows environments and conversion can be done for free.
Prerequisite
- Create an account and get API credentials to perform XLS to SVG conversion
- Download Aspose.Cells Cloud SDK for .NET to convert XLS to SVG
- Setup C# .NET project with the above SDK to render XLS as SVG
Steps to Convert XLS to SVG with NET REST API
- Set the Client ID and Client Secret for the API to convert XLS to SVG
- Create an instance of CellsApi class with client credentials to perform XLS to SVG conversion
- Specify the source XLS and output SVG file names and load the source XLS file in a memory stream
- Create an instance of the PutConvertWorkbookRequest with input XLS file stream and other optional properties
- Call the Excel to SVG request method to convert XLS to SVG with NET REST API
- Save the rendered SVG file stream on the local disk
The aforementioned steps transform the file type from Excel to SVG with C# low code API. We will start the process with the initialization by configuring the SDK and creating the CellsAPI class object. We will then access the source XLS file using a FileStream and create an instance of the PutConvertWorkbookRequest class that is further used for performing the conversion to a SVG file stream using the PutConvertWorkbook() method.
Code for Excel to SVG Conversion in NET Low Code API
This simple example code lets you convert Excel to SVG with C# cloud API. You only need to provide a valid path for the XLS file on the disk with the help of the Aspose.Cells REST API SDK will perform the conversion, and then, after the conversion process is completed, download the output SVG file stream to save it locally.
We have learnt to transform XLS to SVG with Cloud API in this topic. If you want to perform Excel to HTML conversion, refer to the article on how to Convert Excel to HTML with NET REST API.