ボーダー スタイルが Web ブラウザーでサポートされていない場合に、同様のボーダー スタイルをエクスポートする
Contents
[
Hide
]
考えられる使用シナリオ
Microsoft Excel は、Web ブラウザでサポートされていないある種の破線枠をサポートしています。このような Excel ファイルを Aspose.Cells を使用して HTML に変換すると、そのような境界線が削除されます。ただし、Aspose.Cells は、そのような境界線の表示をサポートすることもできますHtmlSaveOptions.ExportSimilarBorderStyle財産。その値を次のように設定してください真実サポートされていない境界線も HTML ファイルにエクスポートされます。
ボーダー スタイルが Web ブラウザーでサポートされていない場合に、同様のボーダー スタイルをエクスポートする
次のサンプル コードは、サンプル Excel ファイル次のスクリーンショットに示すように、サポートされていない境界線が含まれています。スクリーンショットは、HtmlSaveOptions.ExportSimilarBorderStyle内部のプロパティ出力 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 | |
//Load the sample Excel file | |
Workbook wb = new Workbook("sampleExportSimilarBorderStyle.xlsx"); | |
//Specify Html Save Options - Export Similar Border Style | |
HtmlSaveOptions opts = new HtmlSaveOptions(); | |
opts.ExportSimilarBorderStyle = true; | |
//Save the workbook in Html format with specified Html Save Options | |
wb.Save("outputExportSimilarBorderStyle.html", opts); |