تصدير التنسيق الشرطي DataBar و ColorScale و IconSet أثناء تحويل Excel إلى HTML
Contents
[
Hide
]
يمكنك تصدير تنسيق شرطي DataBar و ColorScale و IconSet أثناء تحويل ملف Excel إلى HTML. هذه الميزة مدعومة جزئيًا بواسطة Microsoft Excel ولكن Aspose.Cells يدعمها بالكامل.
تصدير التنسيق الشرطي DataBar و ColorScale و IconSet أثناء تحويل Excel إلى HTML
تُظهر لقطة الشاشة التالية ملفنموذج ملف اكسل باستخدام التنسيق الشرطي DataBar و ColorScale و IconSet. يمكنك تنزيل ملفنموذج ملف اكسل من الارتباط المحدد.
تُظهر لقطة الشاشة التالية الملف Aspose.Cells الناتج HTML الذي يُظهر DataBar و ColorScale و IconSet Conditional Formatting. كما ترى ، يبدو تمامًا مثل ملفنموذج ملف اكسل.
عينة من الرموز
يقوم نموذج التعليمات البرمجية التالي بتحويل ملف Excel النموذجي إلى HTML وهو أمر عاديExcel لتحويل HTML.
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 documents directory. | |
String dataDir = Utils.getDataDir(ConvertingToHTMLFiles.class); | |
// Specify the file path | |
String filePath = dataDir + "Book1.xlsx"; | |
// Specify the HTML saving options | |
HtmlSaveOptions sv = new HtmlSaveOptions(SaveFormat.M_HTML); | |
// Instantiate a workbook and open the template XLSX file | |
Workbook wb = new Workbook(filePath); | |
// Save the HTML file | |
wb.save(dataDir + "output.html", sv); | |
// Print message | |
System.out.println("Excel to HTML conversion performed successfully."); |