tengo problemas al imprimir me imagino que es porque no tengo instalado en scriptx.cab pero no tengo idea como instalarlo....
este es mi codigo:
...
<html>
<head>
<title>IMPRIMIENDO...</title>
<script type="text/javascript" language="JavaScript" src="lib_js.js"></script>
<link rel="stylesheet" href="estilos.css" type="text/css">
<style>
P.page { page-break-before: always }
</style>
<style media="print">
.noprint { display: none }
</style>
</head>
<body>
<object id="factory" viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="../cab/ScriptX.cab#Version=6,1,431,2">
</object>
<script defer>
function window.onload() {
factory.printing.header = ""
factory.printing.footer = ""
//
//http://www.etsedi.com/etsedi-www/
//factory.printing.SetMarginMeasure(2) // margins in inches
factory.printing.leftMargin = 0.75
factory.printing.topMargin = 1.5
factory.printing.rightMargin = 0.75
factory.printing.bottomMargin = 1.5
//factory.printing.printBackground = true;
factory.printing.disableUI = true; // disable IE native printing UI
//http://www.meadroid.com/scriptx/
//enable control buttons
var templateSupported = factory.printing.IsTemplateSupported();
var controls = idControls.all.tags("input");
for ( i = 0; i < controls.length; i++ ) {
controls[i].disabled = false;
if ( templateSupported && controls[i].className == "ie55" )
controls[i].style.display = "inline";
}
factory.printing.Print(false, top);
setTimeout("window.close();",2000);
}
function SpoolStatus(start) {
// provide some visual feedback on spooling status
window.status = start?
"Please wait for spooling to complete ...":
"Spooling is complete";
}
function Print(prompt, frame) {
if ( factory.printing.Print(prompt, frame) ) {
SpoolStatus(true);
//factory.printing.WaitForSpoolingComplete();
SpoolStatus(false);
}
}
function PrintHTML(url) {
SpoolStatus(true);
factory.printing.PrintHTML(url);
//factory.printing.WaitForSpoolingComplete();
SpoolStatus(false);
}
</script>
...