[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.PagePrintingEventArgs

PagePrintingEventArgs Class

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.

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

Constructors

Name Description
PagePrintingEventArgs()

Properties

Name Description
SkipThisPage

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.