توسيع النص من اليمين إلى اليسار أثناء تصدير ملف Excel إلى HTML
توسيع النص من اليمين إلى اليسار أثناء تصدير ملف Excel إلى HTML
الشيفرة النموذجية التالية تحول ملف excel عينة إلى HTML. تظهر هذه اللقطة الشاشة كيفية شكل ملف excel العينة في Microsoft Excel 2013.
تظهر هذه اللقطة الشاشة HTML الناتج المولد بالإصدار القديم.
تظهر هذه اللقطة الشاشة HTML الناتج المولد بالإصدار الجديد.
كما ترون في اللقطات الشاشة، الإصدار الجديد يوسع النص المُمحى إلى اليسار بشكل صحيح تماماً مثل Microsoft Excel.
from aspose.cells import CellsHelper, SaveFormat, Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Load source excel file inside the workbook object | |
wb = Workbook(dataDir + "sample.xlsx") | |
# Save workbook in html format | |
wb.save(dataDir + "ExpandTextFromRightToLeft_out_" + CellsHelper.get_version() + ".html", SaveFormat.HTML) |