S
Salty Dog
Code:
<%Response.Buffer = False%>
<HTML>
<HEAD>
<title>Printing</title>
</HEAD>
<BODY>
<center>
<%
FilePath = "c:\WUTemp\441817810_receiver.txt"
'PrinterShare = "\\Garchive\ISLaser"
PrinterShare = "\\Meta3\OKIDATA"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(FilePath,1,True)
strReadAll = objFile.ReadAll
Set objFile = nothing
on error resume next
Set objFile = objFSO.CreateTextFile(PrinterShare)
objFile.write(strReadAll)
Set objFile = nothing
Set objFSO = nothing
Response.Write("Priting...<br><br>Please wait.")
'Response.Write(Err.number)
'Response.End
%>
<script language=javascript>
var Err = <%=Err.number%>;
if (Err != 0) {
self.setTimeout('window.location.reload();', 65000);
}
else{
window.close();
}
</script>
</BODY>
</HTML>
Here is the workaround that I'm using to try accessing the Printer share and
if error then wait 65 seconds and then it prints without error. Any ideas
what might cause this and how to avoid the 1 minute delay workaround? Thanks
in advance!
If I'm not doing something wrong, should this be a bug report?
<%Response.Buffer = False%>
<HTML>
<HEAD>
<title>Printing</title>
</HEAD>
<BODY>
<center>
<%
FilePath = "c:\WUTemp\441817810_receiver.txt"
'PrinterShare = "\\Garchive\ISLaser"
PrinterShare = "\\Meta3\OKIDATA"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(FilePath,1,True)
strReadAll = objFile.ReadAll
Set objFile = nothing
on error resume next
Set objFile = objFSO.CreateTextFile(PrinterShare)
objFile.write(strReadAll)
Set objFile = nothing
Set objFSO = nothing
Response.Write("Priting...<br><br>Please wait.")
'Response.Write(Err.number)
'Response.End
%>
<script language=javascript>
var Err = <%=Err.number%>;
if (Err != 0) {
self.setTimeout('window.location.reload();', 65000);
}
else{
window.close();
}
</script>
</BODY>
</HTML>
Here is the workaround that I'm using to try accessing the Printer share and
if error then wait 65 seconds and then it prints without error. Any ideas
what might cause this and how to avoid the 1 minute delay workaround? Thanks
in advance!
If I'm not doing something wrong, should this be a bug report?