Excel ファイルを HTML にエクスポートする際にテキストを右から左に展開
Contents
[
Hide
]
Aspose.Cells は、Excel ファイルを HTML にエクスポートする際にテキストを右から左に展開する機能を v8.9.0.0 以降でサポートしています。元の Excel ファイルに右から左に展開するテキストが含まれている場合、Aspose.Cells はそれを適切に HTML にエクスポートします。
Excel ファイルを HTML にエクスポートする際にテキストを右から左に展開
次のサンプルコードは、サンプル Excel ファイル を HTML に変換します。このスクリーンショットは、サンプル Excel が Microsoft Excel 2013 でどのように見えるかを示しています。
このスクリーンショットは、古いバージョンで生成された出力 HTMLを示しています。
このスクリーンショットは、新しいバージョンで生成された出力 HTMLを示しています。
スクリーンショットに示されるように、新しいバージョンでは右寄せされたテキストを Microsoft Excel と同様に適切に左に展開します。
This file contains 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); |