Export DataBar, ColorScale, and IconSet Conditional Formatting while Excel to HTML Conversion with C++

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.

todo:image_alt_text

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.

todo:image_alt_text

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();
}