Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing with WebBrowser control
Message
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00783390
Message ID:
00783516
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform