Expanding text from right to left while exporting Excel file to HTML
Contents
[
Hide
]
Aspose.Cells now supports expanding text from right to left while exporting Excel file to HTML. This feature has been implemented since the v8.9.0.0. Now if your source excel file contains any text which expands from right to left, then Aspose.Cells will export it to HTML correctly.
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.
This screenshot shows the output HTML generated with older version.
This screenshot shows the output HTML generated with newer version.
As you can see in the screenshots, the newer version expands the right-aligned text to left correctly just like Microsoft Excel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the resource directory. | |
String dataDir = Utils.getSharedDataDir(ExpandTextFromRightToLeftWhileExportingExcelFileToHTML.class) + "Conversion/"; | |
//Load source excel file inside the workbook object | |
Workbook wb = new Workbook(dataDir + "sample.xlsx"); | |
//Save workbook in HTML format | |
wb.save(dataDir + "output-" + CellsHelper.getVersion() + ".html", SaveFormat.HTML); |