[]
Provides data for the PagePrinted event.
Use this event data to inspect page information after a page has been printed and to request whether additional pages should continue to print.
public class PagePrintedEventArgs : PagePrintEventArgs
Public Class PagePrintedEventArgs
Inherits PagePrintEventArgs
worksheet.Range["A1:A96"].Value = 1;
bool? hasMorePages = null;
PdfSaveOptions options = new PdfSaveOptions();
options.PagePrinted += (sender, e) =>
{
hasMorePages = e.HasMorePages;
};
using MemoryStream stream = new MemoryStream();
workbook.Save(stream, options);
| Name | Description |
|---|---|
| PagePrintedEventArgs() |
| Name | Description |
|---|---|
| HasMorePages | Gets or sets a value indicating whether an additional page should be printed. If the value is true, you can set it to false to prevent printing more pages. If the value is false, nothing will happen if you set this property. |