Am I the only one who uses ActiveX?

  • 19 years ago

    I have a brpwser control in my app. I can't find a method to print the document that is loaded into the browser. Any ideas?


    <b>Jonathan</b>

  • 19 years ago

    It's actually quite simple:


    Code:
    WebBrowser1.ExecWB(OLECMDIDPRINT,OLECMDEXECOPTDODEFAULT)


    You can also change OLECMDEXECOPTDODEFAULT to OLECMDEXECOPTDONTPROMPTUSER  or whatever... take a look in the object browser for the web browser's commands.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Anyone who considers arithmetic methods of producing random digits is, of course, in a state of sin.” - John von Neumann