client-side printing

736
2
09-10-2014 08:06 AM
MayJeff
Occasional Contributor

Does anyone knows any client-side printing method to use instead of server side one? Sample will be good.

Thank you.

Tags (2)
0 Kudos
2 Replies
BhavinSanghani
Occasional Contributor II

Could you find example of client side printing? I am looking for the same thing. It would be great if you can share some sample code if you have done that. I tried following and it was working before but for some reason it's not working now. I suspect on latest update in chrome browser.

vWindow = window.open('', '', 'width=700,height=600,status=yes,toolbar=no,menubar=yes,location=no,resizable=yes,Scrollbars=yes');
vWindow.document.write('<html><head>');
vWindow.document.write('<title>' + 'Print' + '</title>');
vWindow.document.write('</head><body>');
vWindow.document.write(vMapDiv.getEl().dom.innerHTML);
vWindow.document.write('</body></html>');
vWindow.print();
0 Kudos
MayJeff
Occasional Contributor

I am still looking for client side printing.  Here is another link I found:

https://community.esri.com/message/423843?sr=search&searchId=f63e2b3e-62a7-467d-bc96-f67d6102f21b&se...

Hope someone got a good example to share.

Thanks.

0 Kudos