Skip to content

printElement 2.0 IE Print iFrame problem solved :-) #1

Description

@compumatter

Hello,

I had your version 1.2 and found IE was printing blank page only.

I searched and found your version 2.0 but the problem still existed...

I isolated the problem here and inserted a setTimeout. That cured it. IE was getting the print command before it was done building the iframe.
//------------------------------------------------------------------------
function _callPrint(element) {
if (element && element.printPage) {
/* compumatter inserted code. IE displayed blank page every time if no delay was inserted
this was because 'print' was getting ahead of the iframe content being filled' */
setTimeout(function () {
element.printPage();
}, 50);
}
else {
setTimeout(function () {
_callPrint(element);
}, 50);
}
}
//------------------------------------------------------------------------

Sincerely,

Jay Lepore
CompuMatter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions