I have trouble with the printing function of the WebBrowser
First i load my page and it is rendered
correct. Then i set the header/footer/margins and the right
printer: webbrowser printing; How do I programatically
change printer settings with the WebBrowser control?
works so far. Then i use myBrowser.Print();
But my website does not print right. Only the upper left corner
is printed, a few centimeters and then there are scrollbars.
I printed my website with the IE9 and everything was alright.
Also tried different browsermodes and documentmodes. No problem.
I use the DocumentCompleted but this gets fired multiple times. Now
I've seen this example if (e.Url.AbsolutePath !=
this.webBrowser.Url.AbsolutePath) which is used to confirm that
the requested file is completed loading but this gets fired before
anything else (like images) on the page is loaded. Thus I'm still not
able to tell when a webpage is fully loaded.
Is there a
way to ensure that the webpage has fully loaded and there's nothing
I am using following link to capture web page as image Convert
webpage to image from ASP.NET.
On few pages I am getting
issue where the image created is not similar to actual page but its
same as to page displayed in quirks mode(where the page is messed
up). Is there any way to programmatically change the behavior of
control(without making any registry changes)
I have program which has webBrowser component. I need that this
component would navigate to page which is in Resources ("1.htm"). Is
there anyway to do it? My general wish is that after debuging I would
have only one .exe file of program, and all htm pages would be build
in it (like pictures and icons), or isnt that posible?
I'm currently returning two forms to the same page (let's
call the page 'page1.php) and the forms also submit to page1.php. The
second form is dynamically created based on the value that the first
form passes to page1.php. This works fine. The problem occurs when
it is time for me to enter a value in the textbox of the second form
and submit it. I get a Forbidden 403 Error, which is odd because I
didn't have issues getting access to page1.php after I submitted the
first form. I thoguht it had something to do with submitting the
second form to the same page so I chnaged the form action to sen it
somewhere else cand I get the same Forbidden 403 error for that page