Excel を HTML に変換する際の DataBar、ColorScale、および IconSet 条件付き書式をエクスポート
Contents
[
Hide
]
Excel ファイルを HTML に変換する際に DataBar、ColorScale、および IconSet 条件付き書式をエクスポートできます。この機能は Microsoft Excel で部分的にサポートされていますが、Aspose.Cells では完全にサポートされています。
Excel を HTML に変換する際の DataBar、ColorScale、および IconSet 条件付き書式をエクスポート
サンプルexcelファイルはDataBar、ColorScale、IconSet条件付き書式設定を含んでいます。指定されたリンクからサンプルexcelファイルをダウンロードできます。
Aspose.Cellsの出力HTMLファイルを使用したDataBar、ColorScale、IconSet条件付き書式設定を示す次のスクリーンショットです。ご覧の通り、これはサンプルexcelファイルとまったく同じように見えます。
サンプルコード
サンプルExcelファイルをHTMLに変換するサンプルコードは、通常のExcel to HTML conversionです。
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); |