Expanding text from right to left while exporting Excel file to HTML with Node.js via C++

Expanding text from right to left while exporting Excel file to HTML

The following sample code converts the sample excel file into HTML. This screenshot shows how the sample excel looks like in Microsoft Excel 2013.

todo:image_alt_text

This screenshot shows the output HTML generated with older version.

todo:image_alt_text

This screenshot shows the output HTML generated with newer version.

todo:image_alt_text

As you can see in the screenshots, the newer version expands the right-aligned text to left correctly just like Microsoft Excel.

const path = require("path");
const AsposeCells = require("aspose.cells.node");

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "sample.xlsx");
// Load source excel file inside the workbook object
const wb = new AsposeCells.Workbook(filePath);

// Save workbook in html format
wb.save(path.join(dataDir, `ExpandTextFromRightToLeft_out_${AsposeCells.CellsHelper.getVersion()}.html`), AsposeCells.SaveFormat.Html);