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