Export DataBar, ColorScale, and IconSet Conditional Formatting while Excel to HTML Conversion with C++
Contents
[
Hide
]
You can export DataBar, ColorScale, and IconSet Conditional Formatting while converting your Excel file into HTML. This feature is partially supported by Microsoft Excel but Aspose.Cells for C++ supports it fully.
Export DataBar, ColorScale, and IconSet Conditional Formatting while Excel to HTML Conversion
The following screenshot shows the sample excel file with DataBar, ColorScale, and IconSet Conditional Formatting. You can download the sample excel file from the given link.
The following screenshot shows the Aspose.Cells output HTML file showing DataBar, ColorScale, and IconSet Conditional Formatting. As you can see, it looks exactly like the sample excel file.
Sample Code
The following sample code converts the sample excel file into HTML, which is just a normal Excel to HTML conversion.
#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
int main()
{
Aspose::Cells::Startup();
// Source directory path
U16String srcDir(u"..\\Data\\01_SourceDirectory\\");
// Output directory path
U16String outDir(u"..\\Data\\02_OutputDirectory\\");
// Path of input excel file
U16String filePath = srcDir + u"sample.xlsx";
// Load your sample excel file in a workbook object
Workbook wb(filePath);
// Save it in HTML format
wb.Save(outDir + u"ConvertingToHTMLFiles_out.html", SaveFormat::Html);
std::cout << "File converted to HTML successfully!" << std::endl;
Aspose::Cells::Cleanup();
}