-
Jul 13th, 2017, 10:18 AM
#1
Thread Starter
Lively Member
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?
-
Jul 13th, 2017, 09:41 PM
#2
Thread Starter
Lively Member
Re: WebBrowser PrintPreview Settings - How To?
I still have not found a work around for this.
Can Anyone point me in the right direction?
-
Jul 13th, 2017, 09:43 PM
#3
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.
-
Jul 13th, 2017, 09:48 PM
#4
Thread Starter
Lively Member
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
-
Jul 13th, 2017, 10:00 PM
#5
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.
-
Jul 13th, 2017, 10:10 PM
#6
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|