List Info

Thread: C-Sharp (C#) Group: axWebBrowser




C-Sharp (C#) Group: axWebBrowser
user name
2006-04-19 03:42:36
Greetings,

I have a question on web browser controls in vs.net 03' ...
I have
created an automated tool to navigate to some web page,
programmatically fill in the web form w/ some search
criteria, click
enter and accept a set of results that is returned by an
asp.net
postback. At this point, I would like to print the results.


Here is the code snippets I'm using to accomplish this:

webBrowser.Navigate(url, .., .., .., ..);  // to browse to
the page

// get a reference to the page, so I can fill in search
criteria
IHTMLDocument2 doc = (IHTMLDocument) webBrowser.Document();

// set values for txtboxes, combo boxes and press entere

// got a set of results, print it
doc.execCommand("Print", true, 0);

This only prints the first page (my search form) ...
However, I would
like to print the results page. Is this because web browser
controls
cache pages visited just like IE? If so, how would set those
properties
in the code? If not, what would you recommend ... any hints
will be
appreciated, since I spent all day today googling things,
and didn't
come accross a solution. 

Thank you very much
-yurka


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )