DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeyi HTML ye Dışa Aktarırken C++ ile Dışa Aktar

Excel’den HTML’ye Dönüşüm sırasında DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeleri Dışa Aktar

Aşağıdaki ekran görüntüsü, DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeleri içeren örnek Excel dosyasını göstermektedir. Dosyayı verilen bağlantıdan indirebilirsiniz.

todo:image_alt_text

Aşağıdaki ekran görüntüsü, DataBar, ColorScale ve IconSet Koşullu Biçimlendirmeleri gösteren Aspose.Cells çıktı HTML dosyasını göstermektedir. Görüntü, tamamen örnek excel dosyası ile aynıdır.

todo:image_alt_text

Örnek Kod

Aşağıdaki örnek kod, örnek excel dosyasını HTML’ye dönüştürür, bu sadece normal bir [Excel’den HTML’ye dönüşüm] (/cells/tr/cpp/convert-workbook-to-different-formats/#convertworkbooktodifferentformats-convertingexcelworkbooktohtml).

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