[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.PagePrintedEventArgs

PagePrintedEventArgs Class

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.

Inheritance
PagePrintedEventArgs
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class PagePrintedEventArgs : PagePrintEventArgs
Public Class PagePrintedEventArgs
    Inherits PagePrintEventArgs
Examples
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);

Constructors

Name Description
PagePrintedEventArgs()

Properties

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.