Hello
Thanks for your support.
But it is not working i dont understand what to do.
I have tried another javascript function like below to print map.
function PrintDoc() {
var toPrint = document.getElementById('dvMap');
var popupWin = window.open('', '_blank', 'width=700,height=400,location=no,left=200px');
popupWin.document.open();
popupWin.document.write('<html><title>::Preview::</title><link rel="stylesheet" type="text/css" href="print.css" /></head><body onload="window.print()">')
popupWin.document.write(toPrint.innerHTML);
popupWin.document.write('</html>');
popupWin.document.close();
}
function PrintPreview() {
var toPrint = document.getElementById('dvMap');
var popupWin = window.open('', '_blank', 'width=700,height=400,location=no,left=200px');
popupWin.document.open();
popupWin.document.write('<html><title>::Print Preview::</title><link rel="stylesheet" type="text/css" href="Print.css" media="screen"/></head><body">')
popupWin.document.write(toPrint.innerHTML);
popupWin.document.write('</html>');
//directionsService.route(request, function(response, status) {
// if (status == google.maps.DirectionsStatus.OK) {
// directionsDisplay.setDirections(response);
// }
//});
popupWin.document.close();
}
So i got an answer for that particuler issue.
Now i have to mark any answer??Please let me know
Thanks