G
Guest
I want to create a pop up window for printing report, but I encounter some
problem.
(1). If use showModalDialog, then the toolbar of the browser is missing,
can i display the print toolbar for user to print the report ?
(2). I finally come up with the below solution, however I have to use
"setTimeout"
in order to show the popup form on top of the parent form.
Is there any way to skip using the setTimeout method ?
strPopup = "<script language='javascript'>var
newwin=window.open('Rpt_Friendly_DNote.aspx?Param1=" &
strAirWayBillNbr & "'); " & _
"newwin.window.moveTo(0,0); " & _
"newwin.window.resizeTo(screen.availWidth,
screen.availHeight); " & _
"setTimeout('newwin.focus()',50); " & _
"</script>"
Response.Write(strPopup)
problem.
(1). If use showModalDialog, then the toolbar of the browser is missing,
can i display the print toolbar for user to print the report ?
(2). I finally come up with the below solution, however I have to use
"setTimeout"
in order to show the popup form on top of the parent form.
Is there any way to skip using the setTimeout method ?
strPopup = "<script language='javascript'>var
newwin=window.open('Rpt_Friendly_DNote.aspx?Param1=" &
strAirWayBillNbr & "'); " & _
"newwin.window.moveTo(0,0); " & _
"newwin.window.resizeTo(screen.availWidth,
screen.availHeight); " & _
"setTimeout('newwin.focus()',50); " & _
"</script>"
Response.Write(strPopup)