This article guides how to convert table to HTML using Node.js REST API. You will learn to automatically convert Excel table to HTML table using Node.js Low Code API with a Node.js-based Cloud SDK. It gives control to select the appropriate information from the source Excel file and save the output in the desired file format.
Prerequisite
- Create an account and get API credentials for converting an Excel table to HTML
- Download Aspose.Cells Cloud SDK for Node.js to transform an Excel table to an HTML-formatted stream
- Set up a Node.js project with the above SDK
Steps to Convert Excel Table to HTML Code using Node.js RESTful Service
- Begin by entering your credentials to securely connect with Aspose.Cells Cloud services
- Create the CellsApi object that will let you interact with your Excel spreadsheets in the Cloud
- Select the Excel file you want to use, prepare it for upload, and send it to the Aspose Cloud
- Specify which worksheet and table inside the Excel file should be turned into HTML
- Call the API to transform the selected table into an HTML version
- Store the converted HTML content as a file on your local system
These steps summarize how to convert Excel table to HTML table using Node.js Low Code API. First, sign in to Aspose.Cells Cloud and set up everything needed to work with your Excel file, then upload the file to the cloud. After that, choose the table you want to convert, let the API turn it into HTML, and save the result to your computer.
Code to Convert Excel Table to HTML Code Online using Node.js-based API
The above code demonstrates how to convert Excel table to HTML table online using Node.js REST Interface. The ConvertTableToHtmlRequest class is used to set the parameters of the input data, such as workbook name, worksheet name, and the table name in the source Excel file. The ConvertTableToHtml() method is used for sending the request and retrieving the output HTML-formatted stream that is saved on the disk.
This article has taught us the process to fetch a table from an Excel file and save it as an HTML file. To convert Excel data to JSON format, refer to the article on Convert data from Excel to JSON using Node.js REST API.