Excel ファイルを HTML にエクスポートする際にテキストを右から左に展開

Excel ファイルを HTML にエクスポートする際にテキストを右から左に展開

サンプルexcelファイルをHTMLに変換するサンプルコードは次のとおりです。このスクリーンショットは、サンプルExcelがMicrosoft Excel 2013でどのように表示されるかを示しています。

todo:image_alt_text

このスクリーンショットは、古いバージョンで生成されたoutput HTMLを示しています。

todo:image_alt_text

このスクリーンショットは、新しいバージョンで生成されたoutput HTMLを示しています。

todo:image_alt_text

スクリーンショットに示されるように、新しいバージョンでは右寄せされたテキストを 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);