Hi Peyison,
Thanks a lot for the help that you offered. I found the answer in the following code if anyone wants to have a look at it.
Included 2 .JS files that contained the following code.
Print.JS contained:
// Priting with IE4/5 for AIB Cash Management Reports.
if ( printIsNativeSupport() )
window.print2 = window.print;
window.print = printFrame;
// main stuff
function printFrame(frame, onfinish) {
if ( !frame ) frame = window;
function execOnFinish() {
switch ( typeof(onfinish) ) {
case "string": execScript(onfinish); break;
case "function": onfinish();
}
if ( focused && !focused.disabled ) focused.focus();
}
if ( frame.document.readyState !== "complete" &&
!confirm("The document to print is not downloaded yet! Continue with printing?") )
{
execOnFinish();
return;
}
if ( window.print2 ) { // IE5
var focused = document.activeElement;
frame.focus();
if ( frame.print2 ) frame.print2();
else frame.print();
execOnFinish();
return;
}
var eventScope = printGetEventScope(frame);
var focused =document.activeElement;
window.printHelper = function() {
execScript("on error resume next: printWB.ExecWB 6, 1", "VBScript");
printFireEvent(frame, eventScope, "onafterprint");
printWB.outerHTML = "";
execOnFinish();
window.printHelper = null;
}
Continued on next comment........