تصدير التنسيق الشرطي DataBar و ColorScale و IconSet أثناء تحويل Excel إلى HTML

تصدير التنسيق الشرطي DataBar و ColorScale و IconSet أثناء تحويل Excel إلى HTML

تُظهر لقطة الشاشة التالية ملفنموذج ملف اكسل باستخدام التنسيق الشرطي DataBar و ColorScale و IconSet. يمكنك تنزيل ملفنموذج ملف اكسل من الارتباط المحدد.

ما يجب القيام به: image_بديل_نص

تُظهر لقطة الشاشة التالية الملف Aspose.Cells الناتج HTML الذي يُظهر DataBar و ColorScale و IconSet Conditional Formatting. كما ترى ، يبدو تمامًا مثل ملفنموذج ملف اكسل.

ما يجب القيام به: image_بديل_نص

عينة من الرموز

يقوم نموذج التعليمات البرمجية التالي بتحويل ملف Excel النموذجي إلى HTML وهو أمر عاديExcel لتحويل HTML.

// 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.");

مقالات لها صلة