>to load a blank document, use WebBrowser.Navigate "about:blank", and then you should be able to write to the document using:
>
>Call WebBrowser.Document.write(HTML)
>
>
>>I'm using a WebBrowser control to display a local HTML file. Is there a way to print the displayed document?
>>
>>And also, I was informed of a way to just pass a string to the control and it will be displayed without a need for a file to navigate to. Is there?
>>
>>Thanks!
Hi Eric,
FYI: I found some article and code on MSDN sugesting using code below to print displayed documents. It works, but doesn't display any dialogs.
Private Sub cmdPrint_Click()
Me.ctlBrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, 0, 0
End Sub
Igor
Igor Gelin
Database Developer