rjef
asked on
pop out of webbrowser1 control vba6
I am using the webbrowser1 control in vb6 and when I run the below command
WebBrowser1.Document.All(" ctl00_Cont entPlaceHo lder1_btnV iewReport" ).Click
the report that generates from the website pops out of the webbrowser1 control.
how do I get the data out of that window?
this doesn't work webdata = WebBrowser1.Document.body. innertext
WebBrowser1.Document.All("
the report that generates from the website pops out of the webbrowser1 control.
how do I get the data out of that window?
this doesn't work webdata = WebBrowser1.Document.body.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i think the code that is causing the pop out from webbrowser1 is
<script type="text/javascript">
function openReport(urlReport) {
var params = [
// 'toolbar=no',
'location=no',
'status=no',
'menubar=no',
'resizable=yes',
'width=' + screen.width,
'height=' + screen.height
].join(',');
var randomnumber = Math.floor((Math.random() * 100) + 1);
var popup = window.open(urlReport, "_blank", 'PopUp', randomnumber, params);
return false;
}
</script>
<script type="text/javascript">
function openReport(urlReport) {
var params = [
// 'toolbar=no',
'location=no',
'status=no',
'menubar=no',
'resizable=yes',
'width=' + screen.width,
'height=' + screen.height
].join(',');
var randomnumber = Math.floor((Math.random() * 100) + 1);
var popup = window.open(urlReport, "_blank", 'PopUp', randomnumber, params);
return false;
}
</script>
ASKER
thanks
ASKER
WebBrowser1.Document.All("
sorry it is hard to explain.