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

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

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

todo:画像_代替_文章

このスクリーンショットは、古いバージョンで生成された出力 HTML.

todo:画像_代替_文章

このスクリーンショットは、新しいバージョンで生成された出力 HTML.

todo:画像_代替_文章

スクリーンショットでわかるように、新しいバージョンでは、右揃えのテキストが 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);