Printing a WebBrowser object as part of a Form

MarkGallie

Registered User.
Local time
Today, 05:53
Joined
Apr 17, 2013
Messages
13
I have a form that displays a html document in a WebBrowser object. This displays fine on screen but shows up blank when printing the form. Is there any way to get this to appear on the print? I know you can right-click on the object and select "print" to print the contents of the object but ideally I'd like the page to print in the context of the form. Is this possible?
 
I think i remember using a User32 Method to capture certain ranges of the screen. It could also be passed the hwind of your form and auto detect it's range. Maybe you can do this in VBA and print the capture?
 
As for the screen capture, there are some sample databases on this forum, I think pr2-eugin has one and one other poster.

Otherwise, upload a quick sample db with the web browser control and I'll look into it.
 

Users who are viewing this thread

Back
Top Bottom