Hello everyone,
i have a problem with getting a print out of iframe in asp.net with language c#.
an iframe contain a data from diffrent page(docoment1.htm).
can any one help me in this problem.
my code is as bellow.
this code is in pageload of document2.aspx so when document2.aspx loaded
it's print a data of document1.htm as in src of iframe
<iframe id="fraDocument" style="WIDTH: 0px; HEIGHT: 0px" src="document1.htm"></iframe>
///Javascript Function
function PrintIt()
{
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>;';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, -1);
WebBrowser1.outerHTML = fraDocument.document.body.innerHTML;
}
</script>