'Declaration Public Event PageBodyPrinted As PageBodyPrintedEventHandler
public event PageBodyPrintedEventHandler PageBodyPrinted
The event handler receives an argument of type PageBodyPrintedEventArgs containing data related to this event. The following PageBodyPrintedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Document (Inherited from Infragistics.Win.Printing.PageSectionPrintEventArgs) | Returns the document that is being rendered. |
Graphics (Inherited from Infragistics.Win.Printing.PageSectionPrintEventArgs) | Returns the graphics object into which the page should be rendered |
PageSettings (Inherited from Infragistics.Win.Printing.PageSectionPrintEventArgs) | Returns the System.Drawing.Printing.PageSettings associated with the current page being printed. |
RectInsideBorders (Inherited from Infragistics.Win.Printing.PageSectionPrintEventArgs) | Returns the area of the section within its borders |
RectInsideMargins (Inherited from Infragistics.Win.Printing.PageSectionPrintEventArgs) | Returns the area of the section within its margins |
RectInsidePadding (Inherited from Infragistics.Win.Printing.PageSectionPrintEventArgs) | Returns the area of the section inside the borders. |
RectOverall (Inherited from Infragistics.Win.Printing.PageSectionPrintEventArgs) | Returns the area available for the section. |
Section | Returns the section representing the page body. |
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.Printing Private Sub UltraPrintDocument1_PageBodyPrinting(ByVal sender As Object, ByVal e As Infragistics.Win.Printing.PageBodyPrintingEventArgs) Handles UltraPrintDocument1.PageBodyPrinting ' the PageBodyPrinting event is invoked before ' the contents of the page are rendered the ' Handled parameter may be used to prevent the ' default rendering from occuring If e.Document.PageNumber = 1 Then e.Handled = True End If End Sub Private Sub UltraPrintDocument1_PageBodyPrinted(ByVal sender As Object, ByVal e As Infragistics.Win.Printing.PageBodyPrintedEventArgs) Handles UltraPrintDocument1.PageBodyPrinted ' the PageBodyPrinted is invoked after the print ' document has rendered the contents of the body ' of the page and can be used to render on top ' of the body End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.Printing; private void ultraPrintDocument1_PageBodyPrinting(object sender, Infragistics.Win.Printing.PageBodyPrintingEventArgs e) { // the PageBodyPrinting event is invoked before // the contents of the page are rendered the // Handled parameter may be used to prevent the // default rendering from occuring if (e.Document.PageNumber == 1) e.Handled = true; } private void ultraPrintDocument1_PageBodyPrinted(object sender, Infragistics.Win.Printing.PageBodyPrintedEventArgs e) { // the PageBodyPrinted is invoked after the print // document has rendered the contents of the body // of the page and can be used to render on top // of the body }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2