Excel を HTML に変換しながら、DataBar、ColorScale、IconSet の条件付き書式をエクスポートする
Contents
[
Hide
]
Excel ファイルを HTML に変換する際に、DataBar、ColorScale、および IconSet の条件付き書式をエクスポートできます。この機能は、Microsoft Excel では部分的にサポートされていますが、Aspose.Cells では完全にサポートされています。
Excel を HTML に変換しながら、DataBar、ColorScale、IconSet の条件付き書式をエクスポートする
次のスクリーンショットは、サンプルエクセルファイル DataBar、ColorScale、および IconSet の条件付き書式を使用します。ダウンロードできますサンプルエクセルファイル指定のリンクから。
次のスクリーンショットは、DataBar、ColorScale、および IconSet 条件付き書式設定を示す Aspose.Cells 出力 HTML ファイルを示しています。ご覧のとおり、まったく同じように見えますサンプルエクセルファイル.
サンプルコード
次のサンプル コードは、サンプル Excel ファイルを通常の HTML に変換します。Excel から HTML への変換.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Specify the file path | |
string filePath = dataDir + "sample.xlsx"; | |
// Load your sample excel file in a workbook object | |
Workbook wb = new Workbook(filePath); | |
// Save it in HTML format | |
wb.Save(dataDir + "ConvertingToHTMLFiles_out.html", SaveFormat.Html); |