PrintDocument.EndPrint Evento
Definição
Ocorre quando a última página do documento for impressa.Occurs when the last page of the document has printed.
public:
event System::Drawing::Printing::PrintEventHandler ^ EndPrint;
public event System.Drawing.Printing.PrintEventHandler EndPrint;
member this.EndPrint : System.Drawing.Printing.PrintEventHandler
Public Custom Event EndPrint As PrintEventHandler
Tipo de evento
Comentários
Normalmente, você lida com o EndPrint evento para liberar fontes, fluxos de arquivos e outros recursos usados durante o processo de impressão, como fontes.Typically, you handle the EndPrint event to release fonts, file streams, and other resources used during the printing process, like fonts.
Você indica que não há mais páginas a serem impressas, definindo a PrintPageEventArgs.HasMorePages propriedade como false no PrintPage evento.You indicate that there are no more pages to print by setting the PrintPageEventArgs.HasMorePages property to false in the PrintPage event. O EndPrint evento também ocorrerá se o processo de impressão for cancelado ou ocorrer uma exceção durante o processo de impressão.The EndPrint event also occurs if the printing process is canceled or an exception occurs during the printing process.
Para associar o evento ao manipulador de eventos, adicione uma instância do PrintEventHandler delegado ao evento.To associate the event with your event handler, add an instance of the PrintEventHandler delegate to the event. O manipulador de eventos é chamado sempre que o evento ocorre.The event handler is called whenever the event occurs. Para obter mais informações sobre como manipular eventos com delegados, consulte manipulando e gerando eventos.For more information about handling events with delegates, see Handling and Raising Events.