Silent printing in IE using activeX
Hello
I'm trying to pritn using adobe acrobat activeX
here is my code
<!DOCTYPE html>
<html>
<head>
<title>Print Test</title>
<meta charset="utf-8" />
<script>
function startPrinting() {
var acrobatObj = document.createElement('object');
acrobatObj.width = '500';
acrobatObj.height = '500';
acrobatObj.classid = 'clsid:CA8A9780-280D-11CF-A24D-444553540000';
document.body.appendChild(acrobatObj)
acrobatObj.src = 'test.pdf';
window.setTimeout(
function () {
acrobatObj.print();
}, 1000); // how big timeout?
}
window.onload = startPrinting;
</script>
</head>
<body>
<div id="ext-gen289"></div>
</body>
</html>
It works nicelly
Now the question- if user has low bandwidth, the setTimeout to 1 second is not enough.
In fact soem of users need to wait 1 minute to donlload respective file. While the others on stronger network, can print normally withoin one second
Is there a wya how the activeX would notify me "i have whole content"
I tried to play with cache, cookies sent prom the server, buffered reponse or session with no luck so far
Thanks
Zdenek
