R
Rodger
Hello all,
I have a page that I want to give the user tha ability to select
multiple documents or a single document and then click and print what
is selected. All the files are PDF and all my users will be using IE
6.0 (internet site).
My issue is that the PDF opens and closes but does not print.
Here is my code . . . . . TIA Rodger
_______________________________________________________________________
<html>
<head> </head>
<body background=http://websrv3/images/home_background.gif>
<script language="JavaScript" type="text/javascript">
<!--#include file="js/newmenu_scr.js"-->
</script>
<!--#include file="include/css.inc"-->
<!--#include file="include/header.inc"-->
<table cellSpacing="0" cellPadding="0" width="100%" border="0"
bgcolor="#0000f3">
<tr>
<td align="left" bgcolor="#0000f3" colspan="2"><a class="logo"
href="http://bhshome"><img src="images/b_bhs.gif" WIDTH="265"
HEIGHT="80"></a></td>
<td align="right" class="titles">Discharge
Documents </td>
<!--#include file="include/menu.inc"-->
<BR><BR>
<TABLE align=center border=0 width="45%">
<tr>
<td colspan=2 class=header1>Please select as many discharge
documents you would like to print. Then click on the button
below.<br><BR>
</td>
</tr>
<tr>
<td>
<script language="JavaScript" type="text/javascript">
var docName = ["1200 Calories 4 Meals",
"1500 Calories 4 Meals",
"1800 Calories 4 Meals",
"2000 Calories 4 Meals",
"2200 Calories 4 Meals",
"2400 Calories 4 Meals",
"Cancer Support Groups",
"Cardiac Rehab Guide for Patients",
"CVA Accident",
"Diabetes Discharge Instructions",
"Education and Discharge
Guidelines",
"NSG Discharge Assess",
"Patient's Copy of Discharge Education
Sheets",
"PICC Insertion Discharge
Instructions",
"Various Discharge Instructions"]
var locName = ["1200 Calories 4 Meals.pdf",
"1500 Calories 4 Meals.pdf",
"1800 Calories 4 Meals.pdf",
"2000 Calories 4 Meals.pdf",
"2200 Calories 4 Meals.pdf",
"2400 Calories 4 Meals.pdf",
"Cancer Support Groups.pdf",
"Cardiac Rehab Guide for
Patients.pdf",
"CVA Accident.pdf",
"Diabetes Discharge Instructions.pdf",
"Education and Discharge
Guidelines.pdf",
"NSG Discharge Assess.pdf",
"Patient's Copy of Discharge Education
Sheets.pdf",
"PICC Insertion Discharge
Instructions.pdf",
"Various Discharge Instructions.pdf"]
document.write('<form name=printPDF>');
for (var i in docName) {
document.write('</tr>');
document.write('<tr>');
document.write('<td width=10%
align=center class=header15>');
document.write('<input type=checkbox
value='+i+' name=ckb>');
document.write('</td>');
document.write('<td class=header15>');
document.write('' + docName);}
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align=right
colspan=2><BR><BR><BR>');
document.write('<input type=button
class=button value="Print Selected Items" onclick="PrintMe()">');
document.write('</td>');
document.write('</form>');
var newWin=null;
function PrintMe() {
for (var i=0;i < document.printPDF.ckb.length;
i++) {
if (document.printPDF.ckb.checked) {
//alert("print: "+locName);
newWin = window.open('/Public/
DischargeDocumentation/'+ locName);
newWin.print();
newWin.close();
}
}
}
</script>
</td>
</tr>
</TABLE>
</body>
</html>
_______________________________________________________________________
I have a page that I want to give the user tha ability to select
multiple documents or a single document and then click and print what
is selected. All the files are PDF and all my users will be using IE
6.0 (internet site).
My issue is that the PDF opens and closes but does not print.
Here is my code . . . . . TIA Rodger
_______________________________________________________________________
<html>
<head> </head>
<body background=http://websrv3/images/home_background.gif>
<script language="JavaScript" type="text/javascript">
<!--#include file="js/newmenu_scr.js"-->
</script>
<!--#include file="include/css.inc"-->
<!--#include file="include/header.inc"-->
<table cellSpacing="0" cellPadding="0" width="100%" border="0"
bgcolor="#0000f3">
<tr>
<td align="left" bgcolor="#0000f3" colspan="2"><a class="logo"
href="http://bhshome"><img src="images/b_bhs.gif" WIDTH="265"
HEIGHT="80"></a></td>
<td align="right" class="titles">Discharge
Documents </td>
<!--#include file="include/menu.inc"-->
<BR><BR>
<TABLE align=center border=0 width="45%">
<tr>
<td colspan=2 class=header1>Please select as many discharge
documents you would like to print. Then click on the button
below.<br><BR>
</td>
</tr>
<tr>
<td>
<script language="JavaScript" type="text/javascript">
var docName = ["1200 Calories 4 Meals",
"1500 Calories 4 Meals",
"1800 Calories 4 Meals",
"2000 Calories 4 Meals",
"2200 Calories 4 Meals",
"2400 Calories 4 Meals",
"Cancer Support Groups",
"Cardiac Rehab Guide for Patients",
"CVA Accident",
"Diabetes Discharge Instructions",
"Education and Discharge
Guidelines",
"NSG Discharge Assess",
"Patient's Copy of Discharge Education
Sheets",
"PICC Insertion Discharge
Instructions",
"Various Discharge Instructions"]
var locName = ["1200 Calories 4 Meals.pdf",
"1500 Calories 4 Meals.pdf",
"1800 Calories 4 Meals.pdf",
"2000 Calories 4 Meals.pdf",
"2200 Calories 4 Meals.pdf",
"2400 Calories 4 Meals.pdf",
"Cancer Support Groups.pdf",
"Cardiac Rehab Guide for
Patients.pdf",
"CVA Accident.pdf",
"Diabetes Discharge Instructions.pdf",
"Education and Discharge
Guidelines.pdf",
"NSG Discharge Assess.pdf",
"Patient's Copy of Discharge Education
Sheets.pdf",
"PICC Insertion Discharge
Instructions.pdf",
"Various Discharge Instructions.pdf"]
document.write('<form name=printPDF>');
for (var i in docName) {
document.write('</tr>');
document.write('<tr>');
document.write('<td width=10%
align=center class=header15>');
document.write('<input type=checkbox
value='+i+' name=ckb>');
document.write('</td>');
document.write('<td class=header15>');
document.write('' + docName);}
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align=right
colspan=2><BR><BR><BR>');
document.write('<input type=button
class=button value="Print Selected Items" onclick="PrintMe()">');
document.write('</td>');
document.write('</form>');
var newWin=null;
function PrintMe() {
for (var i=0;i < document.printPDF.ckb.length;
i++) {
if (document.printPDF.ckb.checked) {
//alert("print: "+locName);
newWin = window.open('/Public/
DischargeDocumentation/'+ locName);
newWin.print();
newWin.close();
}
}
}
</script>
</td>
</tr>
</TABLE>
</body>
</html>
_______________________________________________________________________