[]
Gets or sets a value indicating whether this page should be skipped in output.
This property is typically used in the PagePrinting event to determine
whether the page will be omitted when exporting or printing.
public bool SkipThisPage { get; set; }
Public Property SkipThisPage As Boolean
| Type | Description |
|---|---|
| bool |
|
worksheet.Range["A1:A96"].Value = 1;
bool skipThisPage = false;
PdfSaveOptions options = new PdfSaveOptions();
options.PagePrinting += (sender, e) =>
{
if (e.PageNumber == 2)
{
e.SkipThisPage = true;
skipThisPage = e.SkipThisPage;
}
};
using MemoryStream stream = new MemoryStream();
workbook.Save(stream, options);