تصدير تنسيق البيانات الشريطية ومقياس الألوان وتنسيق الرموز أثناء تحويل ملف Excel إلى HTML

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

تُظهر اللقطة الشاشة التالية ملف Excel العيني بقوالب البيانات والمقاييس اللونية ومجموعات الرموز لتنسيق الشروط. يُمكنك تنزيل ملف Excel العيني من الرابط المُعطى.

todo:image_alt_text

تُظهر اللقطة الشاشة التالية ملف HTML الناتج من Aspose.Cells يُظهر قوالب البيانات والمقاييس اللونية ومجموعات الرموز لتنسيق الشروط. كما تلاحظ، يظهر تمامًا مثل ملف Excel العيني.

todo:image_alt_text

الكود المثالي

يحول الكود العيني التالي ملف 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.");

مقال ذو صلة