petermeachem
Programmer
I have a form with a webbrowser control and a few buttons. I need to print the contents of the webbrowser.
What I have is
Sub PrintPage
...some code
WebBrowser1.Print()
...some more code
end sub
What happens is that the printing doesn't start until the end of the sub. This is no good as the real version prints to a file and ...some more code uses that file. But even using an ordinary printer show the same behaviour.
I have exactly the same problem in Word vba and an Outlook add-on.
I have no idea how to fix this. If anyone could help I would be so grateful
What I have is
Sub PrintPage
...some code
WebBrowser1.Print()
...some more code
end sub
What happens is that the printing doesn't start until the end of the sub. This is no good as the real version prints to a file and ...some more code uses that file. But even using an ordinary printer show the same behaviour.
I have exactly the same problem in Word vba and an Outlook add-on.
I have no idea how to fix this. If anyone could help I would be so grateful