[]
Provides data for the PagePrinting event.
Use this event data class to inspect the page being processed and determine whether the current page should be skipped from the output through SkipThisPage.
public class PagePrintingEventArgs : PagePrintEventArgs
Public Class PagePrintingEventArgs
Inherits PagePrintEventArgs
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);
| Name | Description |
|---|---|
| PagePrintingEventArgs() |
| Name | Description |
|---|---|
| SkipThisPage | Gets or sets a value indicating whether this page should be skipped in output.
This property is typically used in the |