Dölja överlagt innehåll med CrossHideRight medan du sparar till HTML

Möjliga användningsscenario

När du sparar din Excel-fil till HTML kan du specificera olika korsningsfunktioner för cellsträngar. Som standard genererar Aspose.Cells HTML enligt Microsoft Excel men när du ändrar korsningstypen till CrossHideRight, döljer den alla strängar till höger om cellsträngen som är överlagda eller överlappar med cellsträngen.

Dölja överlagt innehåll med CrossHideRight vid sparning till Html

Dölja överlagt innehåll med CrossHideRight vid sparande till Html

todo:image_alt_text

Exempelkod

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
//Load sample Excel file
Workbook wb = new Workbook(sourceDir + "sampleHidingOverlaidContentWithCrossHideRightWhileSavingToHtml.xlsx");
//Specify HtmlSaveOptions - Hide Overlaid Content with CrossHideRight while saving to Html
HtmlSaveOptions opts = new HtmlSaveOptions();
opts.HtmlCrossStringType = HtmlCrossType.CrossHideRight;
//Save to HTML with HtmlSaveOptions
wb.Save(outputDir + "outputHidingOverlaidContentWithCrossHideRightWhileSavingToHtml.html", opts);