Esporta uno stile del bordo simile quando lo stile del bordo non è supportato dai browser web
Contents
[
Hide
]
Possibili scenari di utilizzo
Microsoft Excel supporta alcuni tipi di bordi tratteggiati che non sono supportati dai browser Web. Quando si converte un file Excel di questo tipo in HTML utilizzando Aspose.Cells, tali bordi vengono rimossi. Tuttavia, Aspose.Cells può anche supportare la visualizzazione di tali bordi conHtmlSaveOptions.ExportSimilarBorderStyle proprietà. Si prega di impostare il suo valore comeVEROe anche i bordi non supportati verranno esportati nel file HTML.
Esporta uno stile del bordo simile quando lo stile del bordo non è supportato dai browser web
Il codice di esempio seguente carica il fileesempio di file Excel che contiene alcuni bordi non supportati come mostrato nello screenshot seguente. Lo screenshot illustra ulteriormente l’effetto diHtmlSaveOptions.ExportSimilarBorderStyleproprietà all’interno deluscita HTML.
Codice d’esempio
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); |