Hello Silviya,
Thanks for your quick response on this.
As you said i have added the code into my Project.
Added reference Print.js third-party library. And modified the code for PrintDesktop as follows:
trv.printManager = function () {var iframe;
function printDesktop(src) {
if (window.navigator.userAgent.toLowerCase().indexOf("chrome") > -1) {
printJS({ printable: src, type: 'pdf', showModal: true });
} else {
if (!iframe) {
iframe = document.createElement("IFRAME");
iframe.style = "position:absolute; left: -10000px; top: -10000px;";
}
iframe.src = src;
document.body.appendChild(iframe);
}
}
I was getting an exception when click on print after adding code. Can you please check the attachment for error.
Can you please get back on this issue!?
Thanks in Advance.
Thanks,
Srija P.