Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To convert HTML to a spreadsheet using Aspose.Cells for Java in Ruby, simply invoke the html_to_excel() method of the Converter module.
Ruby Code
def html_to_excel()
load_format = Rjb::import('com.aspose.cells.LoadFormat')
# Create an instance of HTMLLoadOptions and initiate it with appropriate LoadFormat
options = Rjb::import('com.aspose.cells.HTMLLoadOptions').new(load_format.HTML)
# Load the Html file through file path while passing the instance of HTMLLoadOptions class
workbook = Rjb::import('com.aspose.cells.Workbook').new(@data_dir + "index.html", options)
save_format = Rjb::import('com.aspose.cells.SaveFormat')
# Save the results to disk in XLSX format
workbook.save(@data_dir + "output.xlsx", save_format.XLSX)
puts "XLSX saved successfully."
endDownload Converting HTML files to Excel Spreadsheets (Aspose.Cells) from any of the below-mentioned social coding sites:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.