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
 
I just used a variable to keep track of adding the handlers.
That fixed it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top