QueryPageSettings problem

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

When I print QueryPageSettings gets called a few times before PrintPage is
called.

I just occurred to me that the problem may be that I do AddHandler each time
I print.

Is that wrong?

If so, is there something I can check to see if a handler has already been
added?

I suppose I could do the AddHandler when I define gAddressesPD but that is
done in a module and I don't know if the module can reference a method in a
form.

Thanks in advance



Public Sub PrintClick()

gAddressesPD.PrintController = New StandardPrintController

AddHandler gAddressesPD.PrintPage, AddressOf -snip

AddHandler gAddressesPD.QueryPageSettings, AddressOf -snip

-snip
 
Back
Top