Hello,
I am trying to print the contents of 2 Iframes...Sounds simple. When the page prints the result is the label text ("Please wait. Search is being processed ...") and 2 empty boxes.
It seems like I have tried everything and have had no luck.
Any help would be greatly appreciated.
Thanks,
JSMoose
Source code:
<HTML>
<HEAD>
<title>Querying for Search Results</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="
<SCRIPT LANGUAGE="JavaScript">
function LoadIframes()
{
var ifrm = document.getElementById('ifrmSDN');
ifrm.src = "
var tmpifrmOFAC = document.getElementById('ifrmOFAC');
tmpifrmOFAC.src = "
window.print();
window.close();
}
</SCRIPT>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server" Font-Size="Large" Width="416px">Please wait. Search is being processed ...</asp:Label>
</form>
<!-- This is the iframe to load the SDN List Results-->
<iframe id="ifrmSDN" name="ifrmSDNListResults" width="500" height="500" style="Z-INDEX: 102; LEFT: 16px; VISIBILITY: visible; POSITION: absolute; TOP: 136px"> </iframe>
<!-- This is the iframe to load the OFAC Results-->
<iframe id="ifrmOFAC" name="ifrmOFACResults" width="500" height="500" style="Z-INDEX: 103; LEFT: 16px; VISIBILITY: visible; POSITION: absolute; TOP: 648px"></iframe>
<INPUT id="btnTest" title="Test Print" style="Z-INDEX: 104; LEFT: 104px; WIDTH: 96px; POSITION: absolute; TOP: 96px; HEIGHT: 24px" type="button" value="Test Print" onclick="LoadIframes()">
</body>
</HTML>
I am trying to print the contents of 2 Iframes...Sounds simple. When the page prints the result is the label text ("Please wait. Search is being processed ...") and 2 empty boxes.
It seems like I have tried everything and have had no luck.
Any help would be greatly appreciated.
Thanks,
JSMoose
Source code:
<HTML>
<HEAD>
<title>Querying for Search Results</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="
<SCRIPT LANGUAGE="JavaScript">
function LoadIframes()
{
var ifrm = document.getElementById('ifrmSDN');
ifrm.src = "
var tmpifrmOFAC = document.getElementById('ifrmOFAC');
tmpifrmOFAC.src = "
window.print();
window.close();
}
</SCRIPT>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server" Font-Size="Large" Width="416px">Please wait. Search is being processed ...</asp:Label>
</form>
<!-- This is the iframe to load the SDN List Results-->
<iframe id="ifrmSDN" name="ifrmSDNListResults" width="500" height="500" style="Z-INDEX: 102; LEFT: 16px; VISIBILITY: visible; POSITION: absolute; TOP: 136px"> </iframe>
<!-- This is the iframe to load the OFAC Results-->
<iframe id="ifrmOFAC" name="ifrmOFACResults" width="500" height="500" style="Z-INDEX: 103; LEFT: 16px; VISIBILITY: visible; POSITION: absolute; TOP: 648px"></iframe>
<INPUT id="btnTest" title="Test Print" style="Z-INDEX: 104; LEFT: 104px; WIDTH: 96px; POSITION: absolute; TOP: 96px; HEIGHT: 24px" type="button" value="Test Print" onclick="LoadIframes()">
</body>
</HTML>