Results 1 to 6 of 6

Thread: WebBrowser PrintPreview Settings - How To?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2016
    Location
    Sabattus, ME
    Posts
    87

    WebBrowser PrintPreview Settings - How To?

    Hi,

    I am using IE's default Web browser Print Preview to preview and print an html document (webbrowser control on my own form).
    But, the print preview window doesn't fill the screen

    I looked at the methods and events for the WebBrowser1.ShowPrintPreviewDialog() command,
    but I couldn't see anything on how to...

    1) Add a Maximize/Minimize button
    2) or set the Preview window to Maximized.

    Does any know of how I can set this up to do that?

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 2016
    Location
    Sabattus, ME
    Posts
    87

    Re: WebBrowser PrintPreview Settings - How To?

    I still have not found a work around for this.
    Can Anyone point me in the right direction?

  3. #3
    Frenzied Member jdc20181's Avatar
    Join Date
    Oct 2015
    Location
    Indiana
    Posts
    1,168

    Re: WebBrowser PrintPreview Settings - How To?

    You would need to create your own, you can simply do that by using other various controls and connecting it to the webbrowser control.
    Disclaimer: When code is given for example - it is merely a example.




    Unless said otherwise indicated - All Code snippets advice or otherwise that I post on this site, are expressly licensed under Creative Commons Attribution 4.0 International Please respect my copyrights.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2016
    Location
    Sabattus, ME
    Posts
    87

    Re: WebBrowser PrintPreview Settings - How To?

    I am already using a web browser control on my form that display the html page.
    And on that form I have a button to display Windows default Print Preview window of the IE Browser.. it's IE's Print Preview window I need to manipulate.

    Microsoft's documentation covers a lot for that Preview, but doesn't mention how I can maximize the Preview Window with code in VB.NET

  5. #5
    Frenzied Member jdc20181's Avatar
    Join Date
    Oct 2015
    Location
    Indiana
    Posts
    1,168

    Re: WebBrowser PrintPreview Settings - How To?

    You can't. You are calling a pre exisiting dialog provided by Windows you can't customize something that already is compiled. The webbrowser control is just a mirror of IE itself, therefore, the default print preview dialog is provided by Internet explorer, the application. There is no way to customize this form.
    Disclaimer: When code is given for example - it is merely a example.




    Unless said otherwise indicated - All Code snippets advice or otherwise that I post on this site, are expressly licensed under Creative Commons Attribution 4.0 International Please respect my copyrights.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2016
    Location
    Sabattus, ME
    Posts
    87

    Re: WebBrowser PrintPreview Settings - How To?

    Makes sense.
    I just hoping there was an API I could throw at it.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width