Expanding text from right to left while exporting Excel file to HTML
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.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Load source excel file inside the workbook object | |
Workbook wb = new Workbook(dataDir + "sample.xlsx"); | |
// Save workbook in html format | |
wb.Save(dataDir + "ExpandTextFromRightToLeft_out_" + CellsHelper.GetVersion() + ".html", SaveFormat.Html); |