'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
'Add the event.
AddHandler GdViewer1.AfterPrintPage, AddressOf GdViewer1_AfterPrintPage
'Define the event.
Sub GdViewer1_AfterPrintPage(ByVal Page As Integer, ByVal PageLeft As Integer) Handles GdViewer1.AfterPrintPage
MessageBox.Show("The page already printed: " + Page.ToString(), "GdViewer.AfterPrintPage")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Add the event.
GdViewer1.AfterPrintPage += GdViewer1_AfterPrintPage;
//Define the event.
void GdViewer1_AfterPrintPage(int Page, int PageLeft, ref bool Cancel)
{
MessageBox.Show("The page already printed: " + Page.ToString(), "GdViewer.AfterPrintPage");
}