function CaptureScreen() { try { var activeX = new ActiveXObject("ActiveX.ExeActivator"); document.parentWindow.moveTo(0, 0); document.parentWindow.resizeTo(document.parentWindow.screen.width, document.parentWindow.screen.height); var table = document.getElementById("tblGoogleMap"); var x = document.parentWindow.screenLeft + table.getClientRects()[0].left; var y = document.parentWindow.screenTop + table.getClientRects()[0].top; var width = table.offsetWidth; var height = table.offsetHeight; // //var activeX = new ActiveXObject("ScreenCaptureActiveX.ScreenCapture"); // // activeX.CaptureScreen(x, y, width, height); } catch (ex) { if (ex.message == "Automation server can't create object") { $find("mpInstallActivex").show(); } else { alert("Message : " + ex.message + " Description : " + ex.description); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)